A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Header



 
 
Thread Tools Display Modes
  #1  
Old July 17th, 2004, 07:27 AM
external usenet poster
 
Posts: n/a
Default 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  
Old July 17th, 2004, 08:16 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default 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

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:17 PM.


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