Opening a Word Document to a specific bookmark

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

Digital Carnage

Hi Gang,
I've figured out how to open up a website using a specific browser to a
specific bookmark! I wondered if it was possible to do the same thing for a
bookmark on a Microsoft Word document. I use MS Office 2003 Pro, the Access
database is set to 2002 version. An example would look something like the
following...

Database is "permit.mbd"
Help file is "C:\Database\Help\support.doc"
Example bookmark name is "MainMenu"

Can anyone help me on this? Thanks Rich.
 
-----Original Message-----
Hi Gang,
I've figured out how to open up a website using a specific browser to a
specific bookmark! I wondered if it was possible to do the same thing for a
bookmark on a Microsoft Word document. I use MS Office 2003 Pro, the Access
database is set to 2002 version. An example would look something like the
following...

Database is "permit.mbd"
Help file is "C:\Database\Help\support.doc"
Example bookmark name is "MainMenu"

Can anyone help me on this? Thanks Rich.
Hi Rich, try...

strDoc="C:\Database\Help\support.doc"

set wdDoc=wdApp.Documents.open(strDoc)

Set wdRange = wdDoc.GoTo(What:=wdGoToBookmark,
Name:="MainMenu")

wdRange.Select

luck
Jonathan
 
Back
Top