JasonEnsor
Programmer
I have written the following macro in word2003 to add "TURN OVER" to the last but 1 line on a document and then add the page number on the last line, however i will have to run the macro everytime i want to add this data. is it possible to automatically add this information on the last 2 lines of a page whenever a new page is created? i know i could use footers however i am restricted from using them due to company policy....
Thank you in advance
Jason
Code:
Sub EndofPage()
Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
Selection.Font.Name = "Arial"
Selection.Font.Size = 14
Selection.TypeText Text:="TURN OVER"
Selection.TypeParagraph
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.Font.Bold = wdToggle
NormalTemplate.AutoTextEntries("Page X of Y").Insert Where:=Selection. _
Range, RichText:=True
End Sub
Thank you in advance
Jason