Hi
I'm trying to print a sheet with headers and footers using the following code:
This works fine but when I add the following:
I get a compile error with the ".CenterHeader" highlighted.
Can anyone tell me what I'm doing wrong.
Cheers
Harv
I'm trying to print a sheet with headers and footers using the following code:
Code:
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
This works fine but when I add the following:
Code:
.CenterHeader = "IN COMMERCIAL CONFIDENCE"
.LeftFooter = "Printed by : " & Sheets("ADMIN").Range("j8")
.CenterFooter = "Page " & P & " of " & N
.RightFooter = Now
.PrintOut Copies:=1, Collate:=True
I get a compile error with the ".CenterHeader" highlighted.
Can anyone tell me what I'm doing wrong.
Cheers
Harv