Clear a Form

M

Mike

I have created a form that is going to be used mutilipe times. I want to be
able to do a save as and then clear the form out. Is there a way to do this
without closing the file and then reopening the file.
 
G

Greg Maxey

Formfields?

You could run a macro something like this:

Sub ResetAndProtect()
If ThisDocument.ProtectionType <> wdAllowOnlyFormFields Then
ThisDocument.Protect wdAllowOnlyFormFields, False
Else
ThisDocument.Unprotect
ThisDocument.Protect wdAllowOnlyFormFields, False
End If
End Sub
 
M

Mike

Thanks, Got me what I needed

Greg Maxey said:
Formfields?

You could run a macro something like this:

Sub ResetAndProtect()
If ThisDocument.ProtectionType <> wdAllowOnlyFormFields Then
ThisDocument.Protect wdAllowOnlyFormFields, False
Else
ThisDocument.Unprotect
ThisDocument.Protect wdAllowOnlyFormFields, False
End If
End Sub




.
 
D

Doug Robbins - Word MVP

Better to save the form as a template and then use File>New to create a new
document from the template each time that you want to use the form.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top