tljenkin
Board Regular
- Joined
- Jun 14, 2007
- Messages
- 147
Hi All,
I have a report which has 4 sheets, lets call it the Master file (MF)
MF has been set to manual calculation because of the amount of calculations required from the formulas within.
Sheet 1-3 are reports; and
Sheet 4 has a 4-column table (Tab1) which is about 2000 rows tall (headers in row 1):
Column A of the table has report names;
Column b is the cost centre code;
Column C is the account number. The combinations for each row based on column b & c are unique and can’t be changed.
Column D has the names of the report managers
Ok I am hoping someone can help me with a macro that can do the following:
1) Use column D to create folders named after each reporting manager in explorer in a folder called “Reporting”. Column D is not sorted so the macro has to determine all unique instances of names and create folders based on that.
2) Run a routine which runs through each combination in columns b & c and changes cells A1 & A2 respectively in sheet 1 e.g. row B2 changes A1 in sheet 1, and C2 changes A2 in sheet 1
3) Hit “shift F9” for each of sheets 1-3 in turn.
4) Save file as the name in column A of Tab1, in the relevant named folder already created from column D
5) Remove all formulas in sheets 1-3.
6) Save file and close
7) Go back to master file and Loop till end.
8) Save MF
Thanks in advance
I have a report which has 4 sheets, lets call it the Master file (MF)
MF has been set to manual calculation because of the amount of calculations required from the formulas within.
Sheet 1-3 are reports; and
Sheet 4 has a 4-column table (Tab1) which is about 2000 rows tall (headers in row 1):
Column A of the table has report names;
Column b is the cost centre code;
Column C is the account number. The combinations for each row based on column b & c are unique and can’t be changed.
Column D has the names of the report managers
Ok I am hoping someone can help me with a macro that can do the following:
1) Use column D to create folders named after each reporting manager in explorer in a folder called “Reporting”. Column D is not sorted so the macro has to determine all unique instances of names and create folders based on that.
2) Run a routine which runs through each combination in columns b & c and changes cells A1 & A2 respectively in sheet 1 e.g. row B2 changes A1 in sheet 1, and C2 changes A2 in sheet 1
3) Hit “shift F9” for each of sheets 1-3 in turn.
4) Save file as the name in column A of Tab1, in the relevant named folder already created from column D
5) Remove all formulas in sheets 1-3.
6) Save file and close
7) Go back to master file and Loop till end.
8) Save MF
Thanks in advance