Hi,
First, thanks Gord for interpreting the question.
The code Gord gave you must be added to the thisWorkbook_Open object and it
will automatically run.
Here is how you add the code he gave to your workbook:
0. Copy the code from the post and modify it by changing the password part
to whatever password you are using.
1. With the workbook open press Alt+F11
2. In the top left part of the screen the Project window is displayed with
your workbook and possilby others. You will see a line that reads VBAProject
(your file name.xls) under that is a folder called Microsoft Excel Objects,
open it if necessary so you can see something called ThisWorkbook.
3. Double click ThisWorkbook and on the screen on the right (empty white
area) paste in the code.
4. Click the Save button.
5. Close the VBA window, the screen you are in, returning you to Excel.
Everything else will take care of itself.
I suspect that you really don't need to protect the code, because the
average user will have no idea where to look or what to look for. But if you
need to follow the instructions for that before you save and close the VBA
window.
If any of this is helpful, please click the Yes button.