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
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. "Pascale" wrote: > 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
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 "eezzell" wrote: > 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. > > > "Pascale" wrote: > > > 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
Tools, Macro, Visual Basic Editor or Alt+F11 -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Pascale" wrote in message news:E938CDF8-CC37-429D-839D-17462469D605@microsoft.com... > 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 > > "eezzell" wrote: > >> 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. >> >> >> "Pascale" wrote: >> >> > 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