Solved

MS Word Visual Basic Mergefield Help

Posted on 2000-03-07
3
507 Views
Last Modified: 2013-11-25
Help!  I am writing a simple program in Word Visual Basic and I need to copy a users response on the form to either a mergefield or a "REF" Bookmark in the Activedocument.

The logic behind this is simple but the syntax is driving me nuts and I feel like I'm about to smack someone.

Thanks!

rick detroit
0
Comment
Question by:saksafon2
3 Comments
 
LVL 1

Expert Comment

by:okcman
ID: 2594591
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=3451

this is the source code of an excellent mail merge example this should help you do everything you need
0
 
LVL 1

Accepted Solution

by:
Kurvy earned 50 total points
ID: 2594742
dim wrdObject as word.application

.......... your code
as you got this far I will assume that you are OK with opening the document

........

wrdObject.activedocument.bookmark("MyBookMark").select
wrdobject.selection.insertafter Text1.txt
0
 

Author Comment

by:saksafon2
ID: 2596222
I almost gave up.  Thanks for your help.  I'm now on the right track and can actually start writing this program.

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
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…

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

18 Experts available now in Live!

Get 1:1 Help Now