Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Heads and Footers

Status
Not open for further replies.

nomsg

Technical User
Aug 21, 2001
61
CA
Hi there,

Does anybody out there know how to:
1. lock headers and footers so it cannot be changed
2. make a different header for page 2 onwards; so only page 1 is different;

Thank you in advance.

cheers,
mel.
 
Not sure about "locking" but you can have different headers and footers.

Insert a section break.
Click View, Header and Footer.
On the Header and Footer toolbar, click Link to Previous.

The default has them linked. Clicking on the button removes the link.

Randy
 
Not sure how to do part one without locking the entire document. To lock a document, Click Tools, Protect Document, Protect for Forms.

To have a different header for page two onwards, insert a next page section break at the end of page one. Open the header for page two, and unclick the same as previous button on the header and footer toolbar (fifth button counting from right to left.)

Tom
 
Thank you Randy and Tom.
Let me try that.

cheers,
mel.
 
The unlinking of page 2 header and footer from page 1 has worked.

But, it seems the doc. needs a page 2, even if the doc is only 1 page ... page 2 remains.

Page 2 -- different header and footer from page 1; and following unlinked page -- remains to be there.

Basically I am creating a co. template letter head where page 1 has logo on top and address at bottom; page 2 only has logo -- address at bottom is not required.

If I try and remove page 2, the header and footer disappears from page 1.

Do I have 2 templates: 1. two or more page letter (with page break); 2. single page letter (without page break)

Please let me know if you have any suggestions.

Thank you.
mel.
 
Excuse me? You do NOT have to make a section break at all. That is what Different first page is for!

Go to File > Page Setup, and then the Layout tab. Check Different first page.

Done. The header/footer is different for the first page ONLY. Using Different first page automatically unlinks the header/footers.

As for locking, as stated, you can lock the entire document (or parts using Sections) with Tools > Protect document. You could make it difficult to change headers/footers by using VBA.

Gerry
 
Thanks Gerry.
That worked out well.

cheers,
mel
 
The reason header1 disappears is written deep in the Document model (not the Object model) of Word. Strange but true. It is for this reason it is better to NOT use Section breaks. In this case anyway.

Every Section has three header objects. So if there IS a section break, and it has content, if the second one (Section) is removed...believe it or not...the header for that section will persist. NOT the first Section. Bizarre...crazy even...but it is an aspect of the Document model.

Try it.

Have a new document.
Put "Section 1" into the header.
Make a section break.
Put "Section 2" into the header.

Take a look. Page 1 header shows "Section1", Page 2 header shows "Section 2".

Delete the section break. There is now only one Section, and it is Section 1. And the header is......."Section 2".

There is nothing whatsoever you can do about this. Header values (and paragraph values) move backwards in Word. It is the way Microsoft looks at documents.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top