P
Paul
Hi
I am generating a processing sheet for each state; then, the macro saves the states into a workbook for each branch, including the states which belong to that branch, using the following sample code
Sheets(Array("Branch 102 Totals", "AL", "FL", "GA", "MS", "102 Competition")).Cop
ChDir "V:\Branch and Corporate\BR102
ActiveWorkbook.SaveAs Filename:=
"V:\Branch and Corporate\BR102\Branch102BARModel.xls", FileFormat:=xlNormal,
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=Fals
Windows("BarModelv2.4.xls").Activat
1.) When the save completes, the macros in the "mother sheet" are no longer available. Can I incorporate them into the save logic selectively so that users will have access to them without needing to have the mother sheet? For instance, so they have access to only the macro "Profit modeling", but not any others
2.) Can the array save logic be expressed in a variable or does it need to be hardcoded
3.) Can I use the network path instead of the drive letter? I am afraid different users may have the drive mapped to a different letter and I would like them to be able to save the file back to the share drive so I can see the results
Thanks for the help! Pau
I am generating a processing sheet for each state; then, the macro saves the states into a workbook for each branch, including the states which belong to that branch, using the following sample code
Sheets(Array("Branch 102 Totals", "AL", "FL", "GA", "MS", "102 Competition")).Cop
ChDir "V:\Branch and Corporate\BR102
ActiveWorkbook.SaveAs Filename:=
"V:\Branch and Corporate\BR102\Branch102BARModel.xls", FileFormat:=xlNormal,
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:=Fals
Windows("BarModelv2.4.xls").Activat
1.) When the save completes, the macros in the "mother sheet" are no longer available. Can I incorporate them into the save logic selectively so that users will have access to them without needing to have the mother sheet? For instance, so they have access to only the macro "Profit modeling", but not any others
2.) Can the array save logic be expressed in a variable or does it need to be hardcoded
3.) Can I use the network path instead of the drive letter? I am afraid different users may have the drive mapped to a different letter and I would like them to be able to save the file back to the share drive so I can see the results
Thanks for the help! Pau