Hey guys, I'm new to the forum and after hours of banging my head on my desk I decided I needed help badly.
I have a Macro Template that I want to protect the Headers and footers. I set the macro to allow access to the headers and footers if the Template had a specific name and that works great. I began writing a code that if the specified name of the document was not used then a username and password prompt would run to access the header and footer. it works great until you start moving around in the headers and footers (moving the cursor left, right, down, up etc) to edit. Every time I move the cursor I receive the Password Userform, can anyone help me with just making the Password Prompt pop up only once after entering the header or footer and then resetting after exiting?
Document code:
Password Userform:
Bookmarks