View Single Post
 
Old 05-19-2022, 07:50 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Your code is not specifying the style in the Header. If you want to control the look of the header then you should apply a style to that range (and make sure the style looks the way you want it to).
Code:
Word.ActiveDocument.Sections(1).Headers(1).Range.Style = "Header"
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote