Solved

MS Word Visual Basic Mergefield Help

Posted on 2000-03-07
3
519 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
[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
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Suggested Courses
Course of the Month8 days, 22 hours left to enroll

615 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