Macro for saving a file that will add ascending numbers and revert back to .xlsx

jboymeng

New Member
Joined
Dec 3, 2014
Messages
14
Hello everyone,

I have been looking for a macro that can do the ff:

Save the active workbook with
  1. Specified path
  2. Prefixed with "SASPO"
  3. Add a number after e.g. "SASPO 1"
  4. Add a value of a range e.g. "SASPO 1 (value of cell B1)"
  5. change the sheet format back to .xlsx e.g. "SASPO 1 (value of cell B1).xlsx"
  6. and the numbers have to ascend regardless if the value of cell B1 changes or not. e.g. "SASPO 2 (value of cell B1)
Is this possible?

Thank you in advance!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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