Hard code date in header

J

Jan

Hi,

I am using Excel 2003. I would like to hard code the date in a header so
that once the file is saved that the date doesn't change when the file is
open a day or week later.

How would I have to change the following to do that. I'm relatively new at
this programming stuff so your help would be greatly appreciated.

Range("A4").Select
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$3"
.PrintTitleColumns = ""
End With

With ActiveSheet.PageSetup
.CenterHeader = "DSV - " & "&A" & Chr(10) & "Statement as of " & "&D"
End With

TIA
 
P

Per Jessen

Hi

..CenterHeader = "DSV - " & "&A" & Chr(10) & "Statement as of " & Date

Hopes this helps.
 

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