As ByteMarks said, the password can easily be bypassed. In order to prevent unauthorized access to files at my place of work, we implement the use of Environ("USERNAME") function to check if the user is found in the list of authorized users.
This could be used in a similar fashion for this case;
In the ThisWorkbook pane in the VBA editor, try this code:
If you don't know your username you can run Environ("USERNAME") on yourself in a separate macro.
You can then set the VBA editor to be password protected on that file by right-clicking in the Project pane, selecting "VBAProject Properties", selecting "Protection" and enable the password protection and remove access to view the code.
If anyone other than yourself tries to run your original macro, they won't be able to save.
Bookmarks