Solved

Inserting text into Word 97

Posted on 1998-10-14
1
116 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

758 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

21 Experts available now in Live!

Get 1:1 Help Now