P
Peter Newman
Firstly thanks to all that have helped me with my problems. Im generating a word doc ' on the fly ' from a VB6 application, inserting a combo of text and Database Fields. After loads of help i've now managed to complete that task, however there is one thing id like to add as a finishing touch, and thats 'nice' page numbering in the footer, centered aligned
so far in the footer i have our company name and a issued date, how can i put in Page - n - centeraligned in the footer
for my footer so far
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Paragraphs.TabStops.ClearAl
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Paragraphs.TabStops.Add Position:=InchesToPoints(1), Alignment:=wdAlignTabLef
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Paragraphs.TabStops.Add Position:=InchesToPoints(9), Alignment:=wdAlignTabRigh
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Font.Size =
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Font.Italic = Tru
.Sections(1).Footers(wdHeaderFooterPrimary).Range.InsertAfter vbTab & "Issued By 'Company Name' " & vbTab & "Issued - " & Dat
Is there a way to assign the page number to a variable so i can use something like this
.Sections(1).Footers(wdHeaderFooterPrimary).Range.InsertAfter vbTab & "Issued By 'Company Name' " & vbTab & "Page - " & NPage & " -" & Vbtab & "Issued - " & Dat
where Npage = Page Number
so far in the footer i have our company name and a issued date, how can i put in Page - n - centeraligned in the footer
for my footer so far
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Paragraphs.TabStops.ClearAl
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Paragraphs.TabStops.Add Position:=InchesToPoints(1), Alignment:=wdAlignTabLef
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Paragraphs.TabStops.Add Position:=InchesToPoints(9), Alignment:=wdAlignTabRigh
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Font.Size =
.Sections(1).Footers(wdHeaderFooterPrimary).Range.Font.Italic = Tru
.Sections(1).Footers(wdHeaderFooterPrimary).Range.InsertAfter vbTab & "Issued By 'Company Name' " & vbTab & "Issued - " & Dat
Is there a way to assign the page number to a variable so i can use something like this
.Sections(1).Footers(wdHeaderFooterPrimary).Range.InsertAfter vbTab & "Issued By 'Company Name' " & vbTab & "Page - " & NPage & " -" & Vbtab & "Issued - " & Dat
where Npage = Page Number