Home |
Search |
Today's Posts |
#13
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
Removing Header and Footer Sections
In Word 2003, I can use View | Header and Footer to open the header, type
something in it, close the header, then reopen it and delete the text. When I then close the header, not only is no paragraph mark displayed in the header, but I can not open the header by double-clicking on it. IOW, I'm back to Square Zero. This suggests to me that something has been fixed, and that it should be possible to remove the headers of Word 2003 docs (or even Normal.dot), leaving no residue. Moreover, the template I use most often used to have an ineradicable header paragraph because I had foolishly opened the header to change the tab stops (because I had changed the margins), instead of changing them in Format | Style: Header without opening the header pane). Even though the header was "empty," there was an empty paragraph mark there. It is now no longer there. Again, I think some SP or other must have fixed this. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "Lene Fredborg" wrote in message ... I think the only difference between Word 2007 and what was previously seen in earlier versions here is that the paragraph mark is now made invisible if there is no other content in the header (the same applies to the footer). If you run the following little macro, you will find that the apparently empty header always contains a paragraph mark: Sub TestHeader() With ActiveDocument.Sections(1).Headers(wdHeaderFooterP rimary).Range If .Text = Chr(13) Then MsgBox "Header consists of a paragraph mark" ElseIf .Text = "" Then MsgBox "Header is empty" End If End With End Sub -- Regards Lene Fredborg - Microsoft MVP (Word) DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Suzanne S. Barnhill" wrote: I think this must have been fixed (at least for Word 2003) because I can now delete header/footer content in a Word 2003 document and see no empty paragraph in the header/footer. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "PamC" wrote in message ... I recall from reading discussions here and elsewhere--discussions explaining why it's not a good idea to put headers and footers in the normal template--that once a header or footer has been added to a document you cannot get rid* of the ending paragraphs marks. So, in a document that has never had header or footer content added, displaying formatting marks while the cursor is in the main story shows no paragraph mark in the header or footer. But doing the same thing in a document that at one time had header or footer content will show a paragraph mark in the now nearly empty header or footer. I suspect that the difference is between the capability of a header/footer and the user created reality of it. *But not too long ago, a Word MVP, offered a VBA way of getting rid of it. Sorry I can't recall where I saw it. PamC "Suzanne S. Barnhill" wrote: I'm not surprised. I just wonder what Word is registering as a change. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Large file size for word doc after adding sections/header & footer | Microsoft Word Help | |||
Removing strange marks in footer | Page Layout | |||
Header and footer sections | Page Layout | |||
page numbers/header-footer issue - sections non-consecutively numb | Page Layout | |||
how can I split the footer in sections | Microsoft Word Help |