Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / December 2003

Tip: Looking for answers? Try searching our database.

Automating a msilmerge from Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JimPNicholls - 05 Dec 2003 15:16 GMT
Hi

I'm trying to automate a Word (97) Mailmerge from Excel. My data source is within Excel (97) and the letter is in Word. Can anyone help me with the code for this? (i.e. Click on a button in excel, then excel launches word and the data source merges with the letter)

**I've tried asking the excel newsgroup but they've pointed me in this direction**
Cindy M  -WordMVP- - 06 Dec 2003 11:47 GMT
Hi =?Utf-8?B?SmltUE5pY2hvbGxz?=,

> I'm trying to automate a Word (97) Mailmerge from Excel. My data source is within Excel (97) and the letter is in Word. Can anyone help me with the
code for this? (i.e. Click on a button in excel, then excel launches word
and the data source merges with the letter)
>  
> **I've tried asking the excel newsgroup but they've pointed me in this direction**

Exactly what your code needs to do depends to a certain extent on how the
merge should work. You're a little vague on that point...

Start at mvps.org/word. You'll find information there on how to automate
Word, generally, from the Excel interface. You should find everything you
need up through and including how to open the letter / create a new letter
from an existing template.

For the mail merge part, start in Word by recording in a macro everything
you want Word to do AFTER the letter has been opened / created.

Feel free to come back for help if you need it on integrating the recorded
macro into the code you get from the website. Be sure to copy/paste
everything you have into your reply.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.