A
Armey
I have a protected word template that I have created with several
formfields. I have written the VBA code as well and it all meets with
my user requirements. The problem is that when I protect the word
template "Tools, Protect Document" with the editing restrictions set to
"Filling in Forms" I get the Visual Basic Error of "The Password is
incorrect" when I exit my first drop-down formfield exit macro event.
If I turn off the document password protection, everything works fine,
but I really need to protect my template so users wont make
unauthorized changes. Also, if i use the protect Form option and dont
set a password as described above, everything works fine. Any ideas
from anyone? Your thoughts are appreciated.
I am using the .Unprotect call as listed in my example below. I am not
sure if the way I am calling this if this is the problem?
MyDropDown()
With ActiveDocument
..Unprotect
---my code here---
..Protect wdAllowOnlyFormFields, NoReset
End With
End Sub
Armey
formfields. I have written the VBA code as well and it all meets with
my user requirements. The problem is that when I protect the word
template "Tools, Protect Document" with the editing restrictions set to
"Filling in Forms" I get the Visual Basic Error of "The Password is
incorrect" when I exit my first drop-down formfield exit macro event.
If I turn off the document password protection, everything works fine,
but I really need to protect my template so users wont make
unauthorized changes. Also, if i use the protect Form option and dont
set a password as described above, everything works fine. Any ideas
from anyone? Your thoughts are appreciated.
I am using the .Unprotect call as listed in my example below. I am not
sure if the way I am calling this if this is the problem?
MyDropDown()
With ActiveDocument
..Unprotect
---my code here---
..Protect wdAllowOnlyFormFields, NoReset
End With
End Sub
Armey