Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 735
- Office Version
- 365
- 2019
- Platform
- Windows
Greetings,
I have a basic MACRO that inserts a header. I think I would need an "Else" statement that if a "0" is in Cell A1 on Sheet "Settings" I need the header to be "DEPARTURES (ZULU)" any other integer in A1 in Sheet "Settings" the original text described below is fine. The active sheet is named Schedule though I can't see what difference that would make.
Thank you very much indeed.
I have a basic MACRO that inserts a header. I think I would need an "Else" statement that if a "0" is in Cell A1 on Sheet "Settings" I need the header to be "DEPARTURES (ZULU)" any other integer in A1 in Sheet "Settings" the original text described below is fine. The active sheet is named Schedule though I can't see what difference that would make.
VBA Code:
Sub Header2()
ActiveSheet.PageSetup.CenterHeader = _
"&""Times New Roman,Bold""&20 DEPARTURES (LOCAL) "
End Sub
Thank you very much indeed.