Solved

Inserting text into Word 97

Posted on 1998-10-14
1
117 Views
Last Modified: 2012-05-04
I am trying to create a vb module that will insert data into a word document that has bookmarks embedded in it.
In the vb4 microsoft course notes it says that you should be able to use the wd.editgoto "bookmark" method to position the cursor at the bookmark. However, in word 97 this does not work.  What can I do ?
0
Comment
Question by:proberts082697
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 300 total points
ID: 1439877
the editgoto was replaced with GoTo wherein you specify what

Try this (replace BM1 with the name of your bookmark):
  wdDoc.GoTo What:=wdGoToBookmark, Name:="BM1"

Or to go to the 4th bookmark, use this:
  wdDoc.GoTo What:=wdGoToBookmark, Count:=4
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now