Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sc11
 
Posts: n/a
Default format the "date" button for a header

I need to insert a date in my header but not in the short format currently
provided by pressing the "date" button.

Is there a forumala etc that I can use that will change the format of this
particular date without going through computer settings and chaning the
"standard" date option. (much like how you can format a normal cell to show
the date in whatever format you require
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You can use this macro:

Public Sub DateInHeader()
Dim ws As Worksheet
For Each ws In ActiveWindow.SelectedSheets
ws.PageSetup.LeftHeader = Format(Date, "dd mmm yyyy")
Next ws
End Sub

Change the date format to suit.

You can also use .CenterHeader or .RightHeader



In article ,
"sc11" wrote:

I need to insert a date in my header but not in the short format currently
provided by pressing the "date" button.

Is there a forumala etc that I can use that will change the format of this
particular date without going through computer settings and chaning the
"standard" date option. (much like how you can format a normal cell to show
the date in whatever format you require

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditonal Format with a date format Kevin Excel Discussion (Misc queries) 2 April 27th 05 10:20 PM
How to format a date to a different format Laura Excel Discussion (Misc queries) 1 March 5th 05 09:59 PM
Date Format Question Josh O. Excel Discussion (Misc queries) 1 February 10th 05 09:45 PM
Date Button in Header (Excel 2000) Jim Excel Discussion (Misc queries) 1 December 11th 04 04:47 PM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM


All times are GMT +1. The time now is 07:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"