Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Burki
 
Posts: n/a
Default How do I change the default date format in an Excel Footer

I need to change the date format in an Excel footer from e.g. 05.02.2005 to
05-Feb-2005. How can I do this?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

You can either type in exactly what you want...

or you can use a macro that runs each time you print.

Option Explicit
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With Worksheets("sheet1").PageSetup
.LeftFooter = Format(Date, "dd-mmm-yyyy")
End With
End Sub


This goes into the ThisWorkbook module.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Burki wrote:

I need to change the date format in an Excel footer from e.g. 05.02.2005 to
05-Feb-2005. How can I do this?


--

Dave Peterson
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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
how do I change the text case of imported data in excel? ArtLene Excel Discussion (Misc queries) 1 January 26th 05 08:08 AM
Change the format of my footer {date} option? Tori Excel Discussion (Misc queries) 1 January 25th 05 06:33 PM
Excel Date Format - Stop? Bob Excel Worksheet Functions 4 January 11th 05 02:11 AM
Auto date changing in Excel is maddening brhicks Charts and Charting in Excel 3 December 16th 04 03:54 PM


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