#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Header/footer

is it possible to display the ONLY the year in the Header/footer? if any body
knows that would be great
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Header/footer

You could type it in.

Or you could use a macro...

Option Explicit
Sub testme01()
With Worksheets("Sheet1")
.PageSetup.CenterHeader = Year(Date)
'any more stuff
End With
End Sub

KWhamill wrote:

is it possible to display the ONLY the year in the Header/footer? if any body
knows that would be great


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Header/footer

Why not just type 2010 in a custom footer?

You cannot format &Date without using VBA

Sub YearInFooter()
With ActiveSheet
.PageSetup.CenterFooter = Format(Date, "yyyy")
End With
End Sub


Gord Dibben MS Excel MVP

On Mon, 11 Jan 2010 08:04:01 -0800, KWhamill
wrote:

is it possible to display the ONLY the year in the Header/footer? if any body
knows that would be great


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
Even/Odd Header & Footer MPriss Excel Discussion (Misc queries) 0 June 4th 09 12:29 AM
header/footer zipper Excel Worksheet Functions 1 June 28th 08 02:40 AM
Header/Footer VirginiaKim Excel Discussion (Misc queries) 2 June 20th 08 09:21 PM
Header & Footer RAJEEV CHADHA Excel Worksheet Functions 1 April 13th 05 09:39 AM
header footer M&A_Jack Excel Worksheet Functions 1 March 8th 05 07:42 PM


All times are GMT +1. The time now is 02:59 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"