L
Lance.Carter via AccessMonster.com
I have a word document with fields which i need to unprotect /edit/re-protect.
The code below always works okay from within Word.
In Access I get a message "Variable not defined" pointing at the '
WdNoProtection' enum (it's an enum right?)
If wdapp.objWord.Application.ActiveDocument.ProtectionType <> wdnoprotection
Then
wdapp.Application.ActiveDocument.Unprotect
End If
Of course i have a Reference to Word 10.0 but do i need more reference or do
i have to define a 'WdProtectionType'? I tried but Access thought i was
trying to create a 'user defined' type.
Thanks in advance.
Lance
The code below always works okay from within Word.
In Access I get a message "Variable not defined" pointing at the '
WdNoProtection' enum (it's an enum right?)
If wdapp.objWord.Application.ActiveDocument.ProtectionType <> wdnoprotection
Then
wdapp.Application.ActiveDocument.Unprotect
End If
Of course i have a Reference to Word 10.0 but do i need more reference or do
i have to define a 'WdProtectionType'? I tried but Access thought i was
trying to create a 'user defined' type.
Thanks in advance.
Lance