J
John W.
Hello,
I am trying to write a program that creates a bunch of password protected
documents. To do so, I am running the following code:
With Dialogs(wdDialogToolsProtectDocument)
PasswordResponse = .Display
ProtectionType = .Type
Password = .DocumentPassword
End With
The VBA help titled "Built-in Dialog Box Argument Lists" includes the
argument Type as one of this particular dialog box's arguments.
Unfortunately, no matter what protection type is selected, the variable
ProtectionType always returns the value 503 (the type of the dialog box, not
the protection type). I understand why this is occurring, but is there any
way to get the protection type for further use?
Thanks a lot for your help!
I am trying to write a program that creates a bunch of password protected
documents. To do so, I am running the following code:
With Dialogs(wdDialogToolsProtectDocument)
PasswordResponse = .Display
ProtectionType = .Type
Password = .DocumentPassword
End With
The VBA help titled "Built-in Dialog Box Argument Lists" includes the
argument Type as one of this particular dialog box's arguments.
Unfortunately, no matter what protection type is selected, the variable
ProtectionType always returns the value 503 (the type of the dialog box, not
the protection type). I understand why this is occurring, but is there any
way to get the protection type for further use?
Thanks a lot for your help!