Footer date format

F

Francis Hookam

Footer date format

Can one vary the format of the date in a footer?

Mine comes out as dd/mm/yyyy whereas I should prefer d mmm YY but on
occasions might choose another format

Francis Hookham
 
J

JE McGimpsey

Francis Hookam said:
Can one vary the format of the date in a footer?

Mine comes out as dd/mm/yyyy whereas I should prefer d mmm YY but on
occasions might choose another format

You can do this with VBA:

Public Sub DateInFooter()
Dim ws As Worksheet
For Each ws In ActiveWindow.SelectedSheets
ws.PageSetup.LeftFooter = Format(Date, "d mmm yy")
Next ws
End Sub
 

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

Top