"save as" using a macro. Can Anyone help....

shrek

Board Regular
Joined
Dec 16, 2005
Messages
244
I have a file which is named as summary. Im trying to save as summary in a new folder in the same drive but need the option to add what I want to save the file as. I.E

File is at present under c:\docs&settings\mydocs\summary but what I want to do is have a macro that can save that file to something like c:\docs&settings\mydocs\summary\oldperioddata but also have the option of when saving as I can name what the file is to be named within the 2nd file its saving to.

Can anyone help???

Many Thanks
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
shrek said:
I have a file which is named as summary. Im trying to save as summary in a new folder in the same drive but need the option to add what I want to save the file as. I.E

File is at present under c:\docs&settings\mydocs\summary but what I want to do is have a macro that can save that file to something like c:\docs&settings\mydocs\summary\oldperioddata but also have the option of when saving as I can name what the file is to be named within the 2nd file its saving to.

Can anyone help???

Many Thanks
Hello Shrek, welcome to the board.
I'm not sure I completely understand what you're looking to do.
I assume some code that just calls up the "SaveAs" diolog box is not what you're after. (?)
It's the last sentence that I'm unclear on. Are you just looking to have it save and then save again (with the SaveAs) using a different file path and under a different name which is to be determined by the value of a cell in the original wb?
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top