TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Sean L.
date: 2004-06-12 10:57:00
subject: Re: GetObject to find Wor

Ok, I fixed it myself.  Here's how I did it for future reference.

    'Use existing mrg file for mail merge
    wrdMailMerge.OpenDataSource MERGE_PATH
    wrdMailMerge.Destination = wdSendToNewDocument
    wrdMailMerge.Execute False
    
    'Close letter template
    wrdDoc.Close False
    
    'Get control of new document and save it in temporary file
    Set wrdDoc = wrdApp.ActiveDocument

By not setting wrdApp = Nothing, I don't need to use GetObject.  Just
close the old letter template, and the new active document is the
merged file.  Too simple for me to figure out the first time, I guess.
 Hope this is helpful to someone else too!
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/12/04 10:57:11 AM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.