Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Change date format in Excel footer

I'm trying to change the format in my Excel footer to dd-mmm-yy.

I have changed the short date in my regional settings from dd/MM/yy to
dd-MMM-yy. In the Regional settings it shows the format I want.

My Excel footer has changed from dd/MM/yy to dd-MM-yy, but still doesn't
give a three-letter month. I am using Windows Vista Home Basic and MS Office
2007
--
Tibs
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Change date format in Excel footer

You will have to go for a VBA solution. Set the security level to low/medium
in (Tools|Macro|Security). From workbook press Alt+F11 to launch VBE (Visual
Basic Editor). From the left treeview search for the workbook name and click
on + to expand it. Within that you should see the following

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
This Workbook

Double click 'This WorkBook' and paste the below code to the right code pane.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.PageSetup.RightFooter = Format(Now, "mmmm dd, yyyy")
Next ws
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Tibs" wrote:

I'm trying to change the format in my Excel footer to dd-mmm-yy.

I have changed the short date in my regional settings from dd/MM/yy to
dd-MMM-yy. In the Regional settings it shows the format I want.

My Excel footer has changed from dd/MM/yy to dd-MM-yy, but still doesn't
give a three-letter month. I am using Windows Vista Home Basic and MS Office
2007
--
Tibs

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Change date format in Excel footer

The format shoul be
ws.PageSetup.RightFooter = Format(Now, "dd-mmm-yy")


If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

You will have to go for a VBA solution. Set the security level to low/medium
in (Tools|Macro|Security). From workbook press Alt+F11 to launch VBE (Visual
Basic Editor). From the left treeview search for the workbook name and click
on + to expand it. Within that you should see the following

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
This Workbook

Double click 'This WorkBook' and paste the below code to the right code pane.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.PageSetup.RightFooter = Format(Now, "mmmm dd, yyyy")
Next ws
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Tibs" wrote:

I'm trying to change the format in my Excel footer to dd-mmm-yy.

I have changed the short date in my regional settings from dd/MM/yy to
dd-MMM-yy. In the Regional settings it shows the format I want.

My Excel footer has changed from dd/MM/yy to dd-MM-yy, but still doesn't
give a three-letter month. I am using Windows Vista Home Basic and MS Office
2007
--
Tibs

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
How do i change the date format in a footer for all excel files? Diane Goncalves Excel Discussion (Misc queries) 1 March 7th 07 12:44 PM
How do i change the date format in a footer? Diane Goncalves[_2_] Excel Discussion (Misc queries) 1 March 7th 07 06:28 AM
Where can I change the footer &[Date] format in Excel 2003? IVVE Setting up and Configuration of Excel 0 March 21st 06 03:21 PM
How change the date format in the excel footer to dd mmm yy? John Ellis Excel Discussion (Misc queries) 1 September 25th 05 09:32 AM
How do I change the default date format in an Excel Footer Burki Setting up and Configuration of Excel 1 February 4th 05 02:15 AM


All times are GMT +1. The time now is 10:16 AM.

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"