Hi
I am trying to have a code to add a header to all tabs except 2 tabs "Control" and "Cover" I am not sure how to insert the code to make this work.
here is my code for the inserting the header
I hope someone can help me out
Kind Regards
Carl
I am trying to have a code to add a header to all tabs except 2 tabs "Control" and "Cover" I am not sure how to insert the code to make this work.
here is my code for the inserting the header
Code:
Sub Update_header()
Dim WS As Worksheet
Dim HeaderText As String
HeaderText = "&""Calibri,bold italic""&11" & "&K021128" & strHeader & Format(Sheet1.Range("e19"))
For Each WS In Worksheets
WS.PageSetup.RightHeader = HeaderText
Next
End Sub
I hope someone can help me out
Kind Regards
Carl