I am automating Word from Access and have bookmarks in a template in Word.
All works fine, but now I want to have bookmarks in the page header so I can
repeat stuff on each page. I get an error when trying to put data into
bookmark of a header. Can anyone help?
David
Jezebel - 27 Jun 2005 23:17 GMT
Use document properties and DocProperty fields instead.
>I am automating Word from Access and have bookmarks in a template in Word.
>All works fine, but now I want to have bookmarks in the page header so I
>can repeat stuff on each page. I get an error when trying to put data into
>bookmark of a header. Can anyone help?
>
> David
Helmut Weber - 28 Jun 2005 03:56 GMT
Hi David,
or, as an alternative to Jezebel's suggestion,
learn about "storyranges". You probably are trying
to address a bookmark in the mainstory, which isn't there,
but in another storyrange, depending of the kind of header you've got.
Greetings from Bavaria, Germany
Helmut Weber, MVP, WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"