PC Review


Reply
Thread Tools Rate Thread

Adding Last Saved Date to Header

 
 
cardan
Guest
Posts: n/a
 
      12th Oct 2007
Hello all,

I am trying to find a way to automatically put the last saved date
into the header of an excel document. Is there an easy macro that can
replace the last saved date every time the document is saved?
Essentially, I need it to look like this

Last Update: (last saved date)

I have only recorded a few basic macros that run with certain
keystrokes. (Ctrl+Shift+Q, etc...). However I have never written one
that will run when the event is saving/ saving while exiting. How
would I go about inserting this into my workbook? Any help is greatly
appreciated. Thank you in advance!

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      13th Oct 2007
Hi cardan

See
http://www.rondebruin.nl/print.htm#Last

You can use the BeforeSave event instead of the BeforePrint event if you want

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"cardan" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hello all,
>
> I am trying to find a way to automatically put the last saved date
> into the header of an excel document. Is there an easy macro that can
> replace the last saved date every time the document is saved?
> Essentially, I need it to look like this
>
> Last Update: (last saved date)
>
> I have only recorded a few basic macros that run with certain
> keystrokes. (Ctrl+Shift+Q, etc...). However I have never written one
> that will run when the event is saving/ saving while exiting. How
> would I go about inserting this into my workbook? Any help is greatly
> appreciated. Thank you in advance!
>

 
Reply With Quote
 
cardan
Guest
Posts: n/a
 
      13th Oct 2007
On Oct 12, 4:07 pm, "Ron de Bruin" <rondebr...@kabelfoon.nl> wrote:
> Hi cardan
>
> Seehttp://www.rondebruin.nl/print.htm#Last
>
> You can use the BeforeSave event instead of the BeforePrint event if you want
>
> --
>
> Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm
>
>
>
> "cardan" <carlsondan...@gmail.com> wrote in messagenews:(E-Mail Removed)...
> > Hello all,

>
> > I am trying to find a way to automatically put the last saved date
> > into the header of an excel document. Is there an easy macro that can
> > replace the last saved date every time the document is saved?
> > Essentially, I need it to look like this

>
> > Last Update: (last saved date)

>
> > I have only recorded a few basic macros that run with certain
> > keystrokes. (Ctrl+Shift+Q, etc...). However I have never written one
> > that will run when the event is saving/ saving while exiting. How
> > would I go about inserting this into my workbook? Any help is greatly
> > appreciated. Thank you in advance!- Hide quoted text -

>
> - Show quoted text -


Thank you for the response. It seems to be working well. However, I do
have some formatting issues. I had the header underlined and
italicized before, however, this macro erases the formatting. Is there
a way to write in the font style, size, underline and italicized into
the macro? Thanks again for your help!

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      13th Oct 2007
Hi cardan

See this example where you can see how you can add formatting
http://www.rondebruin.nl/print.htm#not

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"cardan" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> On Oct 12, 4:07 pm, "Ron de Bruin" <rondebr...@kabelfoon.nl> wrote:
>> Hi cardan
>>
>> Seehttp://www.rondebruin.nl/print.htm#Last
>>
>> You can use the BeforeSave event instead of the BeforePrint event if you want
>>
>> --
>>
>> Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm
>>
>>
>>
>> "cardan" <carlsondan...@gmail.com> wrote in messagenews:(E-Mail Removed)...
>> > Hello all,

>>
>> > I am trying to find a way to automatically put the last saved date
>> > into the header of an excel document. Is there an easy macro that can
>> > replace the last saved date every time the document is saved?
>> > Essentially, I need it to look like this

>>
>> > Last Update: (last saved date)

>>
>> > I have only recorded a few basic macros that run with certain
>> > keystrokes. (Ctrl+Shift+Q, etc...). However I have never written one
>> > that will run when the event is saving/ saving while exiting. How
>> > would I go about inserting this into my workbook? Any help is greatly
>> > appreciated. Thank you in advance!- Hide quoted text -

>>
>> - Show quoted text -

>
> Thank you for the response. It seems to be working well. However, I do
> have some formatting issues. I had the header underlined and
> italicized before, however, this macro erases the formatting. Is there
> a way to write in the font style, size, underline and italicized into
> the macro? Thanks again for your help!
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert last saved date into header Amy Microsoft Excel New Users 9 19th Jun 2009 12:51 AM
Adding "last saved date" to header =?Utf-8?B?Q2hlcnlsSA==?= Microsoft Excel Misc 2 5th Sep 2007 09:50 PM
Changing the date format & adding the date range to the header =?Utf-8?B?UHVyZUV2aWw=?= Microsoft Access 1 6th Oct 2006 11:31 PM
Printing the last modified or saved date in the header/footer =?Utf-8?B?TWFnc3Rlcg==?= Microsoft Excel Discussion 1 8th Mar 2005 04:03 PM
Adding Receipt Date in header permenantly. K. Ramaswamy Microsoft Outlook Discussion 0 12th Jan 2004 05:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 AM.