wdDialogToolsUnprotectDocument and Word 2003

  • Thread starter Jeroen ter Hofstede
  • Start date
J

Jeroen ter Hofstede

I'm trying to create a macro to have the user lift the protection on a
document. The (simplified) code looks like this:

With Application.Dialogs (wdDialogToolsUnprotectDocument)
.Show
End With

This works nicely in Word 2000, asking the user for a password if
appropriate, and removing the protection. However, when I run this in
Word 2003, it refuses to show a dialog and bluntly states "the password
was incorrect."

Any ideas what causes this, and how it can be improved?


Thanks in advance,
Jeroen
 
J

Jeroen ter Hofstede

tiah said:
ActiveDocument.Unprotect

with that code, it will ask the password when there is one

No, unfortunately, it will not. I get the same error. It wouldn't
suffice for my needs, either, as I want to extract the password in
order to re-protect the document later on.

Thanks anyway...
 

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