D
davegb
I have a spreadsheet I publish quarterly for the state.Each quarter, I
create a set of directories to put all of the spreadsheets that I use
to create the final product with. The path to those directories is:
H:\AllDocs\CRSR PIP DD\
Under that directory, I create a directory like this each quarter:
SFY 06 Q1
Within that directory, I create 4 subdirectories called:
Aggregate Raw
Aggregate Interim
Records Base
Records Mod
I receive 2 different kinds of spreadsheets, "Raw" and "Base". My final
product is a combination of a number of each. There are 8 "Base"
sheets, each one with a different name corresponding to a separate
worksheet in the final workbook. This quarter's workbook is "SFY 06 Q1
Statewide". I already have macros, with a lot of help and patience from
the regulars here, that cleanup and reformat the "Base" sheets, each in
a single sheet workbook, then save the modified product into the
corresponding "Mod" directory. Once I've looked them over, I want to
copy the data from each of these workbooks , and paste it into the
corresponding sheet in the "SFY 06 Q1 Statewide" workbook. For example,
I have a Workbook called "Reentries Mod" with a single worksheet,
"Sheet1". I want to copy the data on that sheet and paste it into the
worksheet in "SFY 06 Q1 Statewide" called "Rentries Records". The base
workbook name and the sheet name will always be the same but with "Mod"
in the workbook name, and "Records" in the sheet name in the "SFY 06 Q1
Statewide" workbook.
I'm trying to figure out how to tell the macro which directory it
should find the "Mod" sheets in, and where the "SFY 06 Q1 Statewide"
sheet resides, which is always in the parent directory of the "Records
Mod" directory. But it's name will change each quarter.
Is there a relatively simple way to tell the macro what the new
"Statewide" file name is and where the "Mod" files are without having
to re-enter the entire path every time I do this process? Up to now,
I've been manually modifying the macro code to reflect the name of the
final "Statewide" workbook and to indicate the new paths to the "Mod"
files. I'd like to automate this part of the process. Does anyone have
any suggestions as to how I might do this?
As always, thanks in advance.
create a set of directories to put all of the spreadsheets that I use
to create the final product with. The path to those directories is:
H:\AllDocs\CRSR PIP DD\
Under that directory, I create a directory like this each quarter:
SFY 06 Q1
Within that directory, I create 4 subdirectories called:
Aggregate Raw
Aggregate Interim
Records Base
Records Mod
I receive 2 different kinds of spreadsheets, "Raw" and "Base". My final
product is a combination of a number of each. There are 8 "Base"
sheets, each one with a different name corresponding to a separate
worksheet in the final workbook. This quarter's workbook is "SFY 06 Q1
Statewide". I already have macros, with a lot of help and patience from
the regulars here, that cleanup and reformat the "Base" sheets, each in
a single sheet workbook, then save the modified product into the
corresponding "Mod" directory. Once I've looked them over, I want to
copy the data from each of these workbooks , and paste it into the
corresponding sheet in the "SFY 06 Q1 Statewide" workbook. For example,
I have a Workbook called "Reentries Mod" with a single worksheet,
"Sheet1". I want to copy the data on that sheet and paste it into the
worksheet in "SFY 06 Q1 Statewide" called "Rentries Records". The base
workbook name and the sheet name will always be the same but with "Mod"
in the workbook name, and "Records" in the sheet name in the "SFY 06 Q1
Statewide" workbook.
I'm trying to figure out how to tell the macro which directory it
should find the "Mod" sheets in, and where the "SFY 06 Q1 Statewide"
sheet resides, which is always in the parent directory of the "Records
Mod" directory. But it's name will change each quarter.
Is there a relatively simple way to tell the macro what the new
"Statewide" file name is and where the "Mod" files are without having
to re-enter the entire path every time I do this process? Up to now,
I've been manually modifying the macro code to reflect the name of the
final "Statewide" workbook and to indicate the new paths to the "Mod"
files. I'd like to automate this part of the process. Does anyone have
any suggestions as to how I might do this?
As always, thanks in advance.