Eliminating all headers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a file given to me with headers in it, but I cannot figure out how to
eliminate all the headers (or footers) in the document ALL at once. I can see
how to do that one at a time, but How do I quickly get rid of all headers and
footers in a document. Thanks.
 
Why are you trying to do this? Which version of Word?

See http://word.mvps.org/FAQs/Formatting/PasteWithoutSectionInfo.htm for
some ideas.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
The following macro will delete all header and footer text:

Sub DeleteHF()
Dim rngStory As Word.Range
Dim i As Long
i = ActiveDocument.Sections(1).Headers(1).Range.StoryType
For Each rngStory In ActiveDocument.StoryRanges
Do Until rngStory Is Nothing
Select Case rngStory.StoryType
Case 6 To 12
rngStory.Delete
Case Else
'Do nothing
End Select
Set rngStory = rngStory.NextStoryRange
Loop
Next
End Sub

See: http://www.gmayor.com/installing_macro.htm for instructions for
installing a macro.
 
OK, thanks. I ran that nice macro and it got rid of the headers. Then I added
back in (using INSERT) new page numbers placed in top right corner. They
appear on the screen for each page-- however they do NOT print out there when
I print of the pages of text? what's up?

Are page numbers always headers in Word 2003? Thanks.
 
Don't use Insert > Pagen Numbers, ever. They will make things very tough for
you to edit. Instead go into Header and Footer view and use the toolbar.

Yes, even if you use Insert > Page Numbers, they are still in the header or
footer; it is just that they are also in a frame.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
OK< thanks. I have not used that header/footer view. How do I get the page
numbers to the upper right hand corner? It insists on upper left, and I see
no way to move it under the various layout tabs? Thanks, JOE
 
Joe,

You may get other recomendations, this is how I do it.

Open the header and footer view, press CTRL+r (aligns right), press the
insert page number icon on the Header and Footer toolbar (or enter the field
manually by pressing CTRL+F9 then type PAGE inside the { }, right click and
select toggle field codes).
 
Either use Ctrl+R to right-align it or Tab twice to place it at the built-in
tab stop.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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

Back
Top