View Single Post
 
Old 02-06-2015, 09:38 AM
ChrisDevrell ChrisDevrell is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: May 2012
Location: Southampton
Posts: 3
ChrisDevrell is on a distinguished road
Default Add a bookmark to the Header using Word VBA

Its easy to add a bookmark to the header where there is a range to add it to, eg:

ActiveDocument.Bookmarks.Add name:="MyBookmark", Range:=ActiveDocument.Sections(1).Headers(wdHeader FooterPrimary).range.Paragraphs(1).Range


But how do you set the bookmark to be at the beginning of the header with no range enclosed, ie just the I-beam shape I where the bookmark does not enclose anything.

Can this be done without using the selection object?

It sounds easy but I dont see a way to do it.

Any ideas?

Thanks
Chris
Reply With Quote