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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,967
Messages
6,175,664
Members
452,666
Latest member
AllexDee

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