How do I get a footnote to give the date Monday, 4 July 2005

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to get Excel to give the date at the bottom of the page for
example Monday 4, July 2005 and the next day that I print it out it would be
the 5th and so on.



Victor William Floyd
 
If you really want that format, you'll need a macro to change it.

Rightclick on the excel icon (to the left of the File option on the worksheet
menu bar).

Select view code and paste this code into the code window.

Option Explicit
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Worksheets("Sheet1").PageSetup.LeftFooter _
= Format(Date, "dddd d, mmmm yyyy")
End Sub

Change the name of the sheet (and I used .leftfooter, too).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top