Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

Using variables in footer(s)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BBS - 30 Nov 2005 01:31 GMT
We have a document management program that runs and gives us a "strText"
variable for our documents.  With this variable,  I need a macro that would
allow me to accomplish a few things:

For EVERY footer in my document (whether Diff First Pg or not), I need to
insert strText in 8pt font.  The problem is that  1) I want the users to be
able to choose whether they want strText printed on the first page, the last
page, or every page  2) there is sometimes other text in the footer and
whenever I try to create a macro it uses RANGE and replaces all existing
text.  For instance, if I already have page numbering applied, it removes it.
I want strText to go at the end of the footer, 1 paragraph below the last
line.  3) I need to check to see if strText exists first, so that it could be
deleted before the new strText is inserted (bookmark maybe)

I hope I explained this well enough
Jezebel - 30 Nov 2005 08:34 GMT
The simple approach to this is to use a DocProperty field. All your macro
needs to do is to set the value of the property --

ActiveDocument.CustomerDocumentProperties("OurText") = strText

Then update fields in the footer.

> We have a document management program that runs and gives us a "strText"
> variable for our documents.  With this variable,  I need a macro that
[quoted text clipped - 16 lines]
>
> I hope I explained this well enough
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.