LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Format date in footer to propercase?

Hi,
I am trying to format the date inserted in the footer with &[Date].
I've searched the excel-groups, and it is my understanding that the
only way is through VBA.

This is what i have that works:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = Format(Date, "dd-mmm-yy")
End Sub

However i want to format the month so that dec becomes Dec. I know that
this is the standard for US settings, but i use Danish regional
settings and would rather not change these.

I have tried this:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = StrConv(Format(Date, "dd-mmm-yy"),
vbProperCase)
End Sub

But it does'nt work.
Any suggestions would be greatly appreciated.
thx
Thomas

 
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
Footer date format Rita Brasher[_2_] Excel Discussion (Misc queries) 2 April 14th 10 11:12 PM
Custom footer date format Trekman03 Excel Discussion (Misc queries) 2 September 4th 09 07:30 PM
Header/Footer Date Format David Excel Worksheet Functions 2 March 12th 09 08:50 AM
Footer date format Imran Excel Discussion (Misc queries) 1 October 4th 05 01:18 PM
How do I format the date in a footer? RBono Excel Discussion (Misc queries) 1 February 10th 05 01:01 AM


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