Adding a prompt to an existing Macro

RamseyMN

New Member
Joined
Feb 10, 2014
Messages
2
Hello -

I currently have a macro set up that takes one very large Excel with about 200 tabs and separates it into multiple Excel's and saves them all out to a folder. I will be running this Macro each month and would like it to change the name of the document to include the month that it is related to. For example, right now the Macro will save a document as "Ramsey Summary.xlsx" and I would like the Macro to automatically add "JAN14" at the end. I would like this to be dynamic so each month, I would like it to prompt me and I can enter the appropriate month, year combo (i.e. FEB14, MAR14). I use Excel 2010.

Any ideas on if this is possible and if so, how to set it up. I am looking for an effecient solution as the large file separates into about 50 different files and would rather not manually input the month/year into each file.

Any ideas or thought would be greatly appreciated!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Does this help?

Code:
Sub RamseyMN()
ActiveWorkbook.SaveAs "Ramsey Summary " & Format(DateAdd("m", 0, Date), "mmmyy") & ".xlsx"
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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