PC Review


Reply
Thread Tools Rate Thread

change of date format in footer

 
 
Dean
Guest
Posts: n/a
 
      16th Jan 2007
I have a custom footer and used the date button to have it show the date,
but my boss wants it to show in a different date format, specifically:

16-Jan-07

How do I modify the "[Date]" that the button inserted in the footer to have
this revised format?

Thanks!
Dean


 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Jan 2007
You must use VBA for that Dean

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

--

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


"Dean" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>I have a custom footer and used the date button to have it show the date,
> but my boss wants it to show in a different date format, specifically:
>
> 16-Jan-07
>
> How do I modify the "[Date]" that the button inserted in the footer to have
> this revised format?
>
> Thanks!
> Dean
>
>

 
Reply With Quote
 
Dean
Guest
Posts: n/a
 
      16th Jan 2007
This looks like great stuff to have, Ron. Thanks so much. I have
bookmarked it - is a textbook to follow someday?

I don't see that it specifically addresses what I need at this moment,
however. Perhaps it is implied in one of your many topics. Can you help?

By the way, do you mean that I would have to run a macro every time I wanted
to print any worksheet?

Dean

"Ron de Bruin" <(E-Mail Removed)> wrote in message
news:e$(E-Mail Removed)...
> You must use VBA for that Dean
>
> See
> http://www.rondebruin.nl/print.htm#Saved
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Dean" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I have a custom footer and used the date button to have it show the date,
>>but my boss wants it to show in a different date format, specifically:
>>
>> 16-Jan-07
>>
>> How do I modify the "[Date]" that the button inserted in the footer to
>> have this revised format?
>>
>> Thanks!
>> Dean



 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Jan 2007
Hi Dean

This is event code that run automatic if you press the print button
Be sure you copy it in the Thisworkbook module

You see the Format function in the example that display the date as you want it

Use this

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
For Each wkSht In ThisWorkbook.Worksheets
wkSht.PageSetup.RightFooter = "&8Date : " & _
Format(Date, "dd-mmm-yyyy")
Next wkSht
End Sub


--

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


"Dean" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> This looks like great stuff to have, Ron. Thanks so much. I have
> bookmarked it - is a textbook to follow someday?
>
> I don't see that it specifically addresses what I need at this moment,
> however. Perhaps it is implied in one of your many topics. Can you help?
>
> By the way, do you mean that I would have to run a macro every time I wanted
> to print any worksheet?
>
> Dean
>
> "Ron de Bruin" <(E-Mail Removed)> wrote in message
> news:e$(E-Mail Removed)...
>> You must use VBA for that Dean
>>
>> See
>> http://www.rondebruin.nl/print.htm#Saved
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "Dean" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I have a custom footer and used the date button to have it show the date,
>>>but my boss wants it to show in a different date format, specifically:
>>>
>>> 16-Jan-07
>>>
>>> How do I modify the "[Date]" that the button inserted in the footer to
>>> have this revised format?
>>>
>>> Thanks!
>>> Dean

>
>

 
Reply With Quote
 
Dean
Guest
Posts: n/a
 
      17th Jan 2007
works nice - thanks much, Ron!

"Ron de Bruin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Dean
>
> This is event code that run automatic if you press the print button
> Be sure you copy it in the Thisworkbook module
>
> You see the Format function in the example that display the date as you
> want it
>
> Use this
>
> Private Sub Workbook_BeforePrint(Cancel As Boolean)
> Dim wkSht As Worksheet
> For Each wkSht In ThisWorkbook.Worksheets
> wkSht.PageSetup.RightFooter = "&8Date : " & _
> Format(Date, "dd-mmm-yyyy")
> Next wkSht
> End Sub
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Dean" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> This looks like great stuff to have, Ron. Thanks so much. I have
>> bookmarked it - is a textbook to follow someday?
>>
>> I don't see that it specifically addresses what I need at this moment,
>> however. Perhaps it is implied in one of your many topics. Can you help?
>>
>> By the way, do you mean that I would have to run a macro every time I
>> wanted to print any worksheet?
>>
>> Dean
>>
>> "Ron de Bruin" <(E-Mail Removed)> wrote in message
>> news:e$(E-Mail Removed)...
>>> You must use VBA for that Dean
>>>
>>> See
>>> http://www.rondebruin.nl/print.htm#Saved
>>>
>>> --
>>>
>>> Regards Ron de Bruin
>>> http://www.rondebruin.nl/tips.htm
>>>
>>>
>>> "Dean" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>>I have a custom footer and used the date button to have it show the
>>>>date, but my boss wants it to show in a different date format,
>>>>specifically:
>>>>
>>>> 16-Jan-07
>>>>
>>>> How do I modify the "[Date]" that the button inserted in the footer to
>>>> have this revised format?
>>>>
>>>> Thanks!
>>>> Dean

>>


 
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
Change date format in Excel footer Tibs Microsoft Excel Worksheet Functions 2 24th Nov 2009 04:56 PM
How do i change the date format in a footer? =?Utf-8?B?RGlhbmUgR29uY2FsdmVz?= Microsoft Excel Misc 1 7th Mar 2007 06:28 AM
change date function format in footer =?Utf-8?B?VG9yaQ==?= Microsoft Excel Worksheet Functions 1 25th Jan 2005 08:18 PM
Change the format of my footer {date} option? =?Utf-8?B?VG9yaQ==?= Microsoft Excel Misc 1 25th Jan 2005 05:33 PM
How do I change date format in excel footer =?Utf-8?B?bnVuZWU=?= Microsoft Excel Misc 2 5th Oct 2004 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:34 AM.