Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jan Jan is offline
external usenet poster
 
Posts: 159
Default Date in header

Using Excel 97. I created a macro (s) to change the header depending on
which dept will receive the report. I don't know VBA. In the header dialog
box, I selected the date icon to insert the date. When I look at the macro
via the VBA editor it shows as &D. On the report it will print the date as
5/11/2006. I would like it to print the date as May 11, 2006. How can I
change the following code to format the date as preferred. I have only
listed a few lines of the code.

With ActiveSheet.PageSetup
.LeftHeader = "&""Cushing Book/Bold,Bold""&T"
.CenterHeader = _
"&""Cushing Book/Bold,Bold""&12Perpetual Art Department Project List
for &D"

Also, if the date is inserted in the header via running a macro, I assume
that the date will not change unless the macro is executed again....correct?

TIA
Jan
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
Date in header that is not the current date TW[_2_] Excel Discussion (Misc queries) 0 August 17th 07 02:03 AM
Date in header that is not the current date JLatham Excel Discussion (Misc queries) 0 August 17th 07 01:47 AM
Header date ronnomad Excel Discussion (Misc queries) 6 December 12th 06 04:31 PM
I want to have a header date plus one day? Jerkie Jedi Excel Discussion (Misc queries) 1 October 20th 06 03:03 AM
Date in Header PBANKS[_4_] Excel Programming 3 February 23rd 06 07:06 PM


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