ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Changing date format in a footer (https://www.excelbanter.com/excel-discussion-misc-queries/59572-re-changing-date-format-footer.html)

Gord Dibben

Changing date format in a footer
 
John

Excel gets its footer date format from your Operating System Regional Options
short date settings.

You might be able to change that to your desired format of dd-MMM-yy.

I entered that format in my regional settings and I still get dd-mm-yy so
don't know how you would make out.

It would be a global setting and affect all programs and all worksheets.

Alternative would be to enter a formatted date in a cell and use that cell as
the date in your footer.

This would require a macro to set all sheets.


Gord Dibben Excel MVP


On Thu, 8 Dec 2005 15:09:02 -0800, "John"
wrote:

I have entered a date in a worksheet footer. I would like to change its
format from the default of dd-mm-yy to dd-MMM-yy. How can I do this ? Can I
change the default date format for all worksheets ?
TIA


John

Changing date format in a footer
 
Thanks for the response. I had used the change in the regional settings to
get what I wanted for other programs, but as you have confirmed, it doesn't
seem to work for Excel. V. strange !
So, if anyone does know a way around this ?....
--
John Reynolds


"Gord Dibben" wrote:

John

Excel gets its footer date format from your Operating System Regional Options
short date settings.

You might be able to change that to your desired format of dd-MMM-yy.

I entered that format in my regional settings and I still get dd-mm-yy so
don't know how you would make out.

It would be a global setting and affect all programs and all worksheets.

Alternative would be to enter a formatted date in a cell and use that cell as
the date in your footer.

This would require a macro to set all sheets.


Gord Dibben Excel MVP


On Thu, 8 Dec 2005 15:09:02 -0800, "John"
wrote:

I have entered a date in a worksheet footer. I would like to change its
format from the default of dd-mm-yy to dd-MMM-yy. How can I do this ? Can I
change the default date format for all worksheets ?
TIA



Gord Dibben

Changing date format in a footer
 
John

One workaround is a macro in a general module.

Sub DateInFooter()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.PageSetup.RightFooter = Format(Date, "mm-DDD-yy")
Next ws
End Sub

Alternative....in a beforeprint routine in Thisworkbook module.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.PageSetup.RightFooter = Format(Date, "mm-DDD-yy")
Next ws
End Sub


Gord

On Fri, 9 Dec 2005 01:35:02 -0800, "John"
wrote:

Thanks for the response. I had used the change in the regional settings to
get what I wanted for other programs, but as you have confirmed, it doesn't
seem to work for Excel. V. strange !
So, if anyone does know a way around this ?....



All times are GMT +1. The time now is 09:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com