If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Header
Is there a way in the custom header menu to use only the
YYYY format for the date rather than the entire date. |
#2
|
|||
|
|||
Header
Hi
AFAIK you'll need vBA for this. e.g. put the following code in your workbook module: Private Sub Workbook BeforePrint(Cancel As Boolean) Dim wkSht As Worksheet For Each wkSht In me.Worksheets With wkSht.PageSetup .CenterHead = Format(date,"YYYY") End With Next wkSht End Sub -- Regards Frank Kabel Frankfurt, Germany wrote: Is there a way in the custom header menu to use only the YYYY format for the date rather than the entire date. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Header formatting in LINKed docs not working | Dennis | Page Layout | 4 | July 5th, 2004 10:04 AM |
Header Height won't adjust | Mary | Page Layout | 2 | May 24th, 2004 11:18 PM |
Headers and Footers | Specter7 | New Users | 2 | May 17th, 2004 03:51 PM |
Gigantic Header | Greg | Page Layout | 1 | May 7th, 2004 10:08 PM |
Excel-Footer Mass change of only Header and not footer | M.Raguram | Worksheet Functions | 1 | January 16th, 2004 12:30 PM |