Access--Open Word Doc to bookmark

  • Thread starter Thread starter Digital Carnage
  • Start date Start date
D

Digital Carnage

Hi Gang,
This is kind of a second post, the first one was done by Michael Peeters
on 11/06 but I'm not sure if we're both asking the same question. I have an
Access 2002 database called Permit.mdb. In the same directory that the
database sits in, there is an Word 2002 document called "Permit
Reference.doc". One of the bookmarks I have for example is called
"adminmain". Can someone share with me the proper visual basic code to
launch the document and take me right to the bookmark that I want? Thanks
much, Rich
 
WARNING: AIR CODE:

Dim wrd as New Word.Application
wrd.Documents.Open "Permit Reference.Doc"
wrd.bookmarks("adminmain").select
wrd.Visible=True

HTH
- Turtle

Of course you need a reference to Word.
 
Back
Top