Hello There,
I am using the below code to print the information in a document print header. It is running to an error. Could you please review and please advice?
Thanks
Don
I am using the below code to print the information in a document print header. It is running to an error. Could you please review and please advice?
Thanks
Don
Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim ws As Worksheet
Set ws = Sheets("Setup")
ws.PageSetup.CenterHeader = ws.Range("N5").Value & " " & ws("N6").Value & Chr(10) & _ ws.Range("N7").Value
End Sub