jtakw
Well-known Member
- Joined
- Jun 29, 2014
- Messages
- 7,245
- Office Version
-
- 2016
- Platform
-
- Windows
Hi Everyone,
I've created a simple macro to enter Center Header to worksheet, but can't figure out how to make the result font to be Bold and size 14 when it's actually in the Header.
Thank you for your help.
I've created a simple macro to enter Center Header to worksheet, but can't figure out how to make the result font to be Bold and size 14 when it's actually in the Header.
Code:
Sub ChangeHeaderFooter ()
Set ws = ActiveSheet
Center = InputBox("Enter Center Header")
If Center = "" Then Exit Sub
Application.StatusBar = "Changing header/footer in " & ws.Name
ws.PageSetup.CenterHeader = Center
Set ws = Nothing
Application.StatusBar = False
End Sub
Thank you for your help.