Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 989
Default is there a way to format the date in an excel footer eg just year

trying to automate a copywrite notice that contains just the year, is there a
way to limit/format how &[Date] shows in the footer?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default is there a way to format the date in an excel footer eg just year

Record a macro when you add any old copyright date to a footer.

You'll get some code that boils down to something like:

With ActiveSheet.PageSetup
.CenterFooter = "Copyright: 12/25/2007"
End With

You can change it to:

With worksheets("sheet9999").PageSetup
.CenterFooter = "Copyright: " & format(date, "yyyy")
End With

Date is today's date -- like =today() in a cell.


Mark wrote:

trying to automate a copywrite notice that contains just the year, is there a
way to limit/format how &[Date] shows in the footer?


--

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
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 can you format a date in the header/footer of Excel sheet SAM SEBAIHI Excel Discussion (Misc queries) 4 December 11th 06 05:50 PM
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 07:58 PM.

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"