Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
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
Posted to microsoft.public.word.tables
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Retain header Remove page number on first page | Microsoft Word Help | |||
Why does my header print {PAGE} instead of the actual page number. | Microsoft Word Help | |||
header and page number portrait on landscape page? | New Users | |||
How to delete page number in the header of first page? | Microsoft Word Help | |||
Possible to have incrementing number in header (not page#)? | Page Layout |