Gerry,
thanks for the added a simple "vbCrLf" for more clear reading.
Works fine ....
but what do you mean with through every header type (there are three in each header), are ther three header types ??
wdHeaderFooterFirstPage ?
wdHeaderFooterPrimary ?
To access a bookmark in the header please add this code to your vba script
Dim oRange As Range
Set oRange = ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary) _
.Range.Bookmarks("TEST").Range
oRange.Text = "TEST THIS BOOKMARK"
ActiveDocument.Bookmarks.Add Name:="TEST", Range:=oRange...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.