Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am running the following sub routine, but I would like the new file name to
incorporate a specific cell value so that the file will always be saved in the most current folder. Sub SaveAs() ActiveWorkbook.SaveAs Filename:="N:\FOLDER1\MyFile.xls" End Sub For example, in the modified code below I would like folders {yyyy} and {mm-yyyy} to reference cells A2 and A3, respectively, in a specific worksheet in the active workbook. ActiveWorkbook.SaveAs Filename:="N:\FOLDER1\{yyyy}\{mm-yyyy}\MyFile.xls" Thanks for the help, IP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Save without the Save Message | Excel Discussion (Misc queries) | |||
"Save" macro problem, still prompted to save when closing workbook (?) | Excel Programming | |||
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: | Excel Programming | |||
ASP: Open Excel File with Macro, Allow Macro to run, and then save | Excel Programming | |||
Prompted to save changes after macro save - why? | Excel Programming |