Why does "ActiveDocument.Unprotect" in my macro no longer produce.

M

martin

On a password protected document, the code "ActiveDocument.Unprotect" in a
macro no longer generates the input box asking for a password. Why? Any
suggestions how to rewrite macro? My administrators who know the password
need it after a different macro is used to lock the document with a coded
password.
 
W

Word Heretic

G'day martin <[email protected]>,

Did you reset DisplayAlerts?

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


martin reckoned:
 
M

martin

Thank you. I originally did not alter the Display Alerts. After your
replay, I rewrote the macro with DisplayAlerts = True. This just provided
additional information about the password error. It did not produce the
password input box.

When I select the menu items "Tools|Unprotect" it works fine. The input box
appears and I can enter the password. But when I record a macro for those
exact same steps, then run the macro, no input box appears and I get a
password error message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top