PC Review


Reply
Thread Tools Rate Thread

How do I change the default date format in an Excel Footer

 
 
=?Utf-8?B?QnVya2k=?=
Guest
Posts: n/a
 
      3rd Feb 2005
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?
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      4th Feb 2005
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change date format in Excel footer Tibs Microsoft Excel Worksheet Functions 2 24th Nov 2009 04:56 PM
How do i change the date format in a footer for all excel files? =?Utf-8?B?RGlhbmUgR29uY2FsdmVz?= Microsoft Excel Misc 1 7th Mar 2007 12:44 PM
How change Excel default date format to something useful =?Utf-8?B?bWpr?= Microsoft Excel Misc 1 26th Sep 2005 08:15 PM
How change the date format in the excel footer to dd mmm yy? =?Utf-8?B?Sm9obiBFbGxpcw==?= Microsoft Excel Misc 1 25th Sep 2005 09:32 AM
How do I change date format in excel footer =?Utf-8?B?bnVuZWU=?= Microsoft Excel Misc 2 5th Oct 2004 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:27 AM.