General information
Category:
COM/DCOM and OLE Automation
>In the code below, I have page numbers that are added to the footer of the word document. The page number is centered, apparently automaticly. I'd like to add text to the left portion of the footer "Application Name" and have the page number on right. Anybody have some clues how to do this?
Once you have a reference to a header or footer, you can add text there the same way you do anywhere else in the document. I like the InsertAfter method of the Range object.
In this case, you probably want to set a right tab, then insert your application name, a tab, and the field for a page number. If you have my Automation book, take a look at the Formatting section of Chapter 4.
In the Word VBA Help, topics you might look at are HeaderFooter Object, Field Object, and ParagraphFormat object.
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only