M
MS News
VBA gurus:
I am so confused. I have a form (regular document, not a template) that
opens in a protected state, so that only the fields are available for
editing. This is fine except some of the fields need to be bolded. I created
a toolbar for this document that opens with the document. The button on the
toolbar unprotects the document, bolds the highlighted work & then
re-protects the document.
Sub Makebold()
ActiveDocument.Unprotect Password:="xxxx"
With Selection.Font
.Bold = True
End With
ActiveDocument.Protect (wdAllowOnlyFormFields), NoReset:=True,
Password:="xxxx"
End Sub
Several problems are occurring with this need.
1. Upon opening the document, the toolbar is grayed out instead of being
available.
2. Now that the unprotect with the password has been run, a user can choose
unprotect form the tools menu & mess with the entire document any time they
want. Why isn't it asking for a password anymore? I really need to fix this
problem!
Any help is greatly appreciated.
KS
I am so confused. I have a form (regular document, not a template) that
opens in a protected state, so that only the fields are available for
editing. This is fine except some of the fields need to be bolded. I created
a toolbar for this document that opens with the document. The button on the
toolbar unprotects the document, bolds the highlighted work & then
re-protects the document.
Sub Makebold()
ActiveDocument.Unprotect Password:="xxxx"
With Selection.Font
.Bold = True
End With
ActiveDocument.Protect (wdAllowOnlyFormFields), NoReset:=True,
Password:="xxxx"
End Sub
Several problems are occurring with this need.
1. Upon opening the document, the toolbar is grayed out instead of being
available.
2. Now that the unprotect with the password has been run, a user can choose
unprotect form the tools menu & mess with the entire document any time they
want. Why isn't it asking for a password anymore? I really need to fix this
problem!
Any help is greatly appreciated.
KS