The user doesn't need to know the password (though for anyone
familiar with Word the password would not prove an obstacle). The
macro provides the password both to unlock and relock the form.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Steve wrote:
Thanks for your response.
Is this correct?
The form is password protected, the user does not know the password.
I want to create a tool bar button where by clicking the button it
refreshes / resets the form fields without the need for 1. entering
the password (which they don't know) to reset. 2. Closing the
document and opening again. I've created the button, just need the
code.
Steve
:
Hi Steve
The essential code is:
object.UnProtect Password:=YourPassword
object.Protect Type:=wdAllowOnlyFormFields, Password:=YourPassword
where 'object' is your document (eg ActiveDocument)
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
Hi there,
Look for some macro code to create a form field reset button
without the user unprotecting the form.
Many thanks in advance.
Steve