Hello Sbrown54,
I suspect there was a User Defined Function that determined if a given sheet was protected. This macro will determine if the named worksheet is protected by returning a True or False.
To Install the Macro:
1. Copy the Macro code above using CTRL+C
2. Open Excel and Right Click on any Sheet Tab
3. Click on View Code in the pop up menu
4. Use ALT+I to activate the VBE Insert Menu
5. Press the letter m to insert a Standard Module
6. Paste the macro code using CTRL+V
7. Save the macro using CTRL+S
8. Close the VBE and return to excel using ALT+Q
Worksheet Example
This checks if the ActiveSheet (the one the formula is on) is protected.
To check another worksheet in the workbook is protected, enter the name as a String.
Sincerely,
Leith Ross
Bookmarks