reference a Word bookmark within a text box from Access

W

WC Justice

I am using vba in Access 2000 that opens a Word document and populates it at
bookmarks via automation. This is all working just fine. The problem is
that when I added a text box and inserted a bookmark, Access
can not find the new bookmark. It looks like there is a separate bookmark
collection for those within text boxes, or something like that, but I don't
how to reference it. Can you help please?

Thanks
 
D

Dave Jones

A textbox on a word document is a Formfield and you need to reference it as
follows:
objDoc.FormFields("Nameofbookmark").Result = YourValue

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top