I have written a macro to add the sheet name to the header and the page number to the footer I can't get it to work. Any help would be appreciated.
Tom
Tom
Code:
Sub UpdateHeader()
' UpdateHeader Macro
Application.PrintCommunication = True
Application.PrintCommunication = False
With ActiveSheet.PageSetup
.CenterHeader = "&Tab"
.CenterFooter = "Page & &P &"
End With
Application.PrintCommunication = True
End Sub