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 / Publisher / Programming / February 2008

Tip: Looking for answers? Try searching our database.

automatically adding last saved version

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pascale - 31 Jan 2008 08:46 GMT
Hello
I am working with publisher 2003. Is it possible to have on the master a
date which will automatically update itself each time the document is saved
please? and how would I go about it ?
Many thanks
eezzell - 31 Jan 2008 19:24 GMT
Not knowing how much experience you have with Visual Basic, it can be done
trivially using the following code in the BeforeClose event on the document
object:

Private Sub Document_BeforeClose(Cancel As Boolean)
ThisDocument.MasterPages(1).Footer.TextRange = Date
End Sub

It would be better to use the open event so that you could see that the date
was correct before saving the document.

Computing should be about insight, not numbers or flash.

> Hello
> I am working with publisher 2003. Is it possible to have on the master a
> date which will automatically update itself each time the document is saved
> please? and how would I go about it ?
> Many thanks
Pascale - 02 Feb 2008 16:29 GMT
Thanks for your answer. Unfortunately my experience in visual basic and
programming is 0
I would be grateful if you could tell me where to type your code please.
Many thank for your help
Pascale

> Not knowing how much experience you have with Visual Basic, it can be done
> trivially using the following code in the BeforeClose event on the document
[quoted text clipped - 14 lines]
> > please? and how would I go about it ?
> > Many thanks
Mary Sauer - 02 Feb 2008 17:09 GMT
Tools, Macro, Visual Basic Editor or Alt+F11

Signature

Mary Sauer MSFT MVP
http://office.microsoft.com/
http://msauer.mvps.org/
news://msnews.microsoft.com

> Thanks for your answer. Unfortunately my experience in visual basic and
> programming is 0
[quoted text clipped - 20 lines]
>> > please? and how would I go about it ?
>> > Many thanks

Rate this thread:






 
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.