Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Updating the date in Custom Header

I would like to be able to create a header where I can either link the date
to another cell in the worksheet or be able to have the date in the header
always refer to the previous month end. Such as May 31, 2007 for this month.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 301
Default Updating the date in Custom Header

You need to put code in the Workbook_BeforePrint Event:
ActiveSheet.PageSetup.LeftHeader = Format(Range("A1").Value,"Short Date")
for example.

"mjlevie" wrote in message
...
I would like to be able to create a header where I can either link the date
to another cell in the worksheet or be able to have the date in the header
always refer to the previous month end. Such as May 31, 2007 for this
month.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Updating the date in Custom Header

How about a formula?

=DATE(YEAR(TODAY()),MONTH(TODAY()),0)


--
Regards,

Peo Sjoblom




"Bob Umlas" wrote in message
...
You need to put code in the Workbook_BeforePrint Event:
ActiveSheet.PageSetup.LeftHeader = Format(Range("A1").Value,"Short Date")
for example.

"mjlevie" wrote in message
...
I would like to be able to create a header where I can either link the
date
to another cell in the worksheet or be able to have the date in the
header
always refer to the previous month end. Such as May 31, 2007 for this
month.





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
Updating a Date in a Graph Header Field [email protected] Excel Worksheet Functions 1 July 22nd 06 01:03 PM
Can you link a custom property to an Excel custom header text? LouErc Setting up and Configuration of Excel 0 November 8th 05 04:58 PM
Excel: custom header - is it possible to paste into header? Maureen D. Excel Worksheet Functions 0 November 4th 05 03:07 PM
Date Format in Custom Header Radsri- Excel Discussion (Misc queries) 2 September 7th 05 03:57 PM
how do I permanetly add custom header to excel header list? GARY Excel Discussion (Misc queries) 1 December 15th 04 08:52 PM


All times are GMT +1. The time now is 06:31 PM.

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

About Us

"It's about Microsoft Excel"