Jagwarman
asked on
save file using sheet name and text from a cell in another sheet
I need to save each sheet in my workbook [Except for the sheet named Rec]
The path is C:\Cpn\CA\Events\Red\2015 [which will change every year] \Mar 15 [which will change each month]
*I would like the macro to create a folder for year and month if there is no folder already there
the file name will be the sheet name and then the name in cell C38 from Sheet named Rec.
so file name would be like: Book3 - AB123456 - Red - 160315 [book3 being sheet name] [ - AB123456 - Red - 160315 being in cell C38 in sheet Rec]
so file path and name would be: C:\Cpn\CA\Events\Red\2015\ Mar 15\Book3 - AB123456 - Red - 160315.xls
Thanks in advance
The path is C:\Cpn\CA\Events\Red\2015 [which will change every year] \Mar 15 [which will change each month]
*I would like the macro to create a folder for year and month if there is no folder already there
the file name will be the sheet name and then the name in cell C38 from Sheet named Rec.
so file name would be like: Book3 - AB123456 - Red - 160315 [book3 being sheet name] [ - AB123456 - Red - 160315 being in cell C38 in sheet Rec]
so file path and name would be: C:\Cpn\CA\Events\Red\2015\
Thanks in advance
ASKER
I tried that myself but it does not do what I need.
I need to save each sheet in my workbook [Except for the sheet named Rec]
the other sheets [and there can be many of them] are the ones I need to save with the name of their sheet plus the text that is in cell C38 which is in the sheet named Rec.
Regards
I need to save each sheet in my workbook [Except for the sheet named Rec]
the other sheets [and there can be many of them] are the ones I need to save with the name of their sheet plus the text that is in cell C38 which is in the sheet named Rec.
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Kimputer thanks yours did exactly what I needed
ASKER
Saurabh Singh Teotia thank you for your I will definitely be able to use in the future but Kimputers was what I needed.
Save Macro
You can tweak this code like this...
Open in new window
Saurabh