How to create MS Excel 2007 macro which
every time the file is launched, it will prompt
the user to “Save as”?
So that the file will not be overwritten.
Help me with the macro, please!
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
I put it inside the Workbook_Open event so that the Save As dialog box opens whenever the workbook is opened.
As written, it does not prevent the user from canceling the Save As, so that would have to be added if needed.
1 – Use Alt-F11 to open the VBA editor.
2 – Double-click the ThisWorkbook entry under the VBA Project list.
3 – Paste the following code into the pane that opens and save the file.