PC Review


Reply
Thread Tools Rate Thread

Change Format of Date in Header

 
 
Sriram
Guest
Posts: n/a
 
      21st Apr 2008
Hi All,
While inserting &[Date] in the Header of an Excel Worksheet, the date on my
Print appears as 4/21/2008 which is not the way I want.
I want it displayed as 21-Apr-2008.
And I do not find any formatting button as in the case of a normal excel
Worksheet where we can choose from the date Templates available.

Any help would be greatly appreciated.

Sriram
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      21st Apr 2008
I think you can only do this with a macro:

Public Sub sampledate()
ActiveSheet.PageSetup.LeftFooter = Format(Now, "d mmm yy")
ActiveSheet.PageSetup.LeftHeader = Format(Now, "d mmm yy")
End Sub


Look here is you are unfamiliar with using macros:
http://www.anthony-vba.kefra.com/vba...ur_First_Macro

Regards,
Ryan--

--
RyGuy


"Sriram" wrote:

> Hi All,
> While inserting &[Date] in the Header of an Excel Worksheet, the date on my
> Print appears as 4/21/2008 which is not the way I want.
> I want it displayed as 21-Apr-2008.
> And I do not find any formatting button as in the case of a normal excel
> Worksheet where we can choose from the date Templates available.
>
> Any help would be greatly appreciated.
>
> Sriram

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      22nd Apr 2008
You have a very limited control over this by your short date settings in Windows
Regional and Laguage settings.

The closest I can achieve is 21-04-08 from those settings

Otherwise see Ryan's macro solution.


Gord Dibben MS Excel MVP

On Mon, 21 Apr 2008 05:48:01 -0700, Sriram <(E-Mail Removed)>
wrote:

>Hi All,
>While inserting &[Date] in the Header of an Excel Worksheet, the date on my
>Print appears as 4/21/2008 which is not the way I want.
>I want it displayed as 21-Apr-2008.
>And I do not find any formatting button as in the case of a normal excel
>Worksheet where we can choose from the date Templates available.
>
>Any help would be greatly appreciated.
>
>Sriram


 
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
How to change the default format of the date in header? Ben Graffery Microsoft Word New Users 6 14th Apr 2008 02:33 PM
Excel 2003 can you change the header date format? =?Utf-8?B?bGRlZG1vbg==?= Microsoft Excel Misc 0 7th Mar 2007 06:11 PM
how do I change date format in the header in Excel XP ? =?Utf-8?B?SGVzYW0=?= Microsoft Excel Misc 1 8th Jul 2005 06:34 PM
How change Date format in header? Steve Adams Microsoft Excel Discussion 2 9th Sep 2004 06:06 PM
Possible to change date format in header/footer? StargateFan Microsoft Excel Misc 8 5th Jun 2004 11:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 PM.