Word mail merge and attach to email (1 Viewer)

harrisw

Registered User.
Local time
Today, 15:34
Joined
Mar 27, 2001
Messages
131
I've created a button which basically opens a word document and populates it with information from a from.

This works ok.


When I try to attach the word doc to an outlook email it says that the word doc is open elsewhere.

task manager shows winword.exe open evn though at the end of the code I set all the objects to nothing

Any ideas?
 

Travis

Registered User.
Local time
Today, 07:34
Joined
Dec 17, 1999
Messages
1,332
You set the Variable = Nothing, you did not "Close" the Word Process.

Try adding the WordObject.Close to your code just before you set it to Nothing.
 

harrisw

Registered User.
Local time
Today, 15:34
Joined
Mar 27, 2001
Messages
131
Tried it and I get an error "method or data member not found"

at the begining i have

Dim objWord As Word.Application

at the end I set the objects to nothing

Anything else I can try?
 

Users who are viewing this thread

Top Bottom