Workbook close help. Check to see if saved as a file name

Miler13

New Member
Joined
Feb 5, 2017
Messages
43
I want my workbook to save as two cell ranges when it closes, and if it is already named that, then to just normally save and close. Example
In range D1 it has Joe Dirt
In range G1 it has 123456

I want to be able to close the workbook and have it save as JoeDirt123456

Once that workbook is saved, if I open it again and make changes and close out, it will just save it under that current name.

Hope this makes sense.

Thanks!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Pick a cell to put something in when you saved it.
Before saving the code should check the cell contents and decide whether to save or cancel.
Another thing you can use instead of a cell is a custom file property ( I prefer this).
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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