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
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