Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want my header to say "yyyy results", where yyyy is the current year.
Any suggestions? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With the current year entered in A1,
Sub CellValueInHeader() With ActiveSheet.PageSetup .LeftHeader = Range("a1").Value & " Results" End With End Sub Vaya con Dios, Chuck, CABGx3 "Hubitron2000" wrote: I want my header to say "yyyy results", where yyyy is the current year. Any suggestions? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here is a Workbook subroutine - in VBA Editor Project click ThisWorkbook;
and copy Sub there. Private Sub Workbook_BeforePrint(Cancel As Boolean) Dim dte As Date dte = Date With ActiveSheet.PageSetup .LeftHeader = Format(dte, "yyyy") & " Results" End With End Sub Found in Google Newsgroup search; acknowledgement to Bob Philips in microsoft.public.excel.misc Fri, Nov 4 2005 1:01 pm best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "Hubitron2000" wrote in message ... I want my header to say "yyyy results", where yyyy is the current year. Any suggestions? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Currency to Text | Excel Worksheet Functions | |||
How do I display the RESULT of a formula | New Users to Excel | |||
Amount or Numbers in Words | New Users to Excel | |||
Spellnumber | Excel Worksheet Functions | |||
Excel 2003 - Formula result shows as 0:00 | Excel Worksheet Functions |