Save As

gripper

Board Regular
Joined
Oct 29, 2002
Messages
176
I have a macro that creates a master spreadsheet from several other spreadsheets.

Now I want to be able to do a save as command with in the macro.

On my spreadsheet Sheet1 in cell B2 I have the file name - example "finalsheet"

I am trying to figure out the steps to save this to file path C:\active_files\$b2.xlsx

I would like the first part of the string to be constant "c:\active_files\ and the variable to be the value in cell b2 with a file extension added of ".xlsx"

Is there a way to do this automatically without the save as dialog box opening and asking me to click he button?

Any assistance to poin me in the right direction would be appreciated very much.

Thank you.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hello, maybe like:

<font face=Courier New>ActiveWorkbook.SaveAs Filename:="C:\active_files\" & Range("B2").Value & ".xlsm"</FONT>
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,628
Members
452,933
Latest member
patv

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