Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To add text and page number to word documents footer
Message
From
15/10/2004 13:37:22
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00951777
Message ID:
00951783
Views:
6
This message has been marked as a message which has helped to the initial question of the thread.
>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
Map
View

Click here to load this message in the networking platform