Here is a solution I cam up with, see the attached below.
The Code for the module is:
How to install your new code
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
The Passwords sheet is hidden. You'll need to unlock the workbook to unhide it so you can customize it. The password for everything is "MyPassword". You'll want to change that. You'll also want to password protect the VBA project. To do that go to the VBA editor and right-click on any module within the worksheet and select "VBA Project Properties" and supply a password in the "Protection" tab.
Bookmarks