Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
StevenM StevenM is offline
external usenet poster
 
Posts: 20
Default How Does One Add a Page Number to a Header?

I would like to create a header so that: €śAdd Title Here€ť appears on the left
side of the page, and €śPage {PAGE}€ť appears on the right side of the page. So
far I got:

Sub AddHeader()
Dim oRange As Range

Set oRange = ActiveDocument.Range(Start:=ActiveDocument.Range.S tart,
End:=ActiveDocument.Range.End)
With oRange.Sections(1).Headers(wdHeaderFooterPrimary). Range
..Delete
..Paragraphs.Alignment = wdAlignParagraphLeft
..InsertAfter "Add Title Here" & vbTab & vbTab & "Page "
End With
End Sub

I would like a page number to follow: "Page ", I wish I could just add: &
vbPageNumber, but I suspect that it will be more complex than that.

Any help will be greatly appreciated.

Steven Craig Miller
  #2   Report Post  
Posted to microsoft.public.word.tables
StevenM StevenM is offline
external usenet poster
 
Posts: 20
Default How Does One Add a Page Number to a Header?


I'm sorry I put this in the wrong section.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retain header Remove page number on first page KM Microsoft Word Help 5 December 11th 07 09:22 AM
Why does my header print {PAGE} instead of the actual page number. HiediZ Microsoft Word Help 1 August 11th 06 04:58 AM
header and page number portrait on landscape page? NP New Users 4 April 15th 05 02:42 PM
How to delete page number in the header of first page? Leila Microsoft Word Help 4 April 15th 05 12:02 AM
Possible to have incrementing number in header (not page#)? James Page Layout 1 February 9th 05 02:37 PM


All times are GMT +1. The time now is 12:02 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"