Document Template Question in Word 2003

G

Guest

I created some templates in Word 2003 that will be used by a few people in
the office. I inserted Form fields to control what is being entered by the
individuals who will be using the form.

I would like to know if there is a macro I can create that will give the
user the option of deleting the Header information if they have pre-printed
letterhead. I would like to have a button that allows the users to click on
it and have the header information not print. If they don’t have a
pre-printed letter head then the header information should remain.

Also I noticed that Once I Protect the Form I'm unable to use the toolbars
in the body of the document. Is there a way I can Protect Form and still use
the toolbars in the body of the document?

Thanks for the help!
 
G

Guest

I have been trying to record a macro that will delete the Frame and the Text
fields inside the Frame at the top of the document but it wont work.

Any Suggestions?
 
J

John McGhie [MVP - Word and Word Macintosh]

It's not a "Frame" it's a "Header"

With ActiveDocument.Sections(1).headers(wdHeaderFooterPrimary)
If .Range.Text <> vbCr Then
.range.text.delete
Else
MsgBox "Header is empty"
End If
End With

I have been trying to record a macro that will delete the Frame and the Text
fields inside the Frame at the top of the document but it wont work.

Any Suggestions?

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
 

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