?
Solved

Inserting text into Word 97

Posted on 1998-10-14
1
Medium Priority
?
125 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 1200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 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