K
Kenny Bones
Hi, I've got a drop-down list in a table that I want to get working.
However, the document contains several sections and if I protect the whole
section, the other parts of the same table which the drop-down list is in,
also get protected and therefore cannot be accessed.
Now, I've found that I can probably write a macro which protects and
uprotects the document. And I was thinking of having this macro run IF the
user clicks on the field.
Short pseudocode :
(Dropdown1 and Dropdown2 are the bookmark names of the fields)
With ActiveDocument
If Dropdown1_Click or Dropdown2_Click Then
ActiveDocument.Protect wdAllowOnlyFormFields
End If
ActiveDocument.Unprotect
End With
End sub
Can this be done?
However, the document contains several sections and if I protect the whole
section, the other parts of the same table which the drop-down list is in,
also get protected and therefore cannot be accessed.
Now, I've found that I can probably write a macro which protects and
uprotects the document. And I was thinking of having this macro run IF the
user clicks on the field.
Short pseudocode :
(Dropdown1 and Dropdown2 are the bookmark names of the fields)
With ActiveDocument
If Dropdown1_Click or Dropdown2_Click Then
ActiveDocument.Protect wdAllowOnlyFormFields
End If
ActiveDocument.Unprotect
End With
End sub
Can this be done?