mailmerge with VBA using ACCESS 2000 continue

O

olgaz

Hello,
This is my routine code:


I do not ask to save anything and I close Word:


The program works well and the document can be printed. However, when
login
again, on the same computer, and opening Word, all those documents open
automatically under the title recovered.
How can I prevent this from happening each time?

Thank you.



You probably need

objWord.Quit after the close.

Peter Jamieson

It's not working!!!!!!!!!!!!!!!!!!
 
D

Doug Robbins - Word MVP

Ater this line of code, insert

objWord.Application.ActiveDocument.PrintOut
objWord.Application.ActiveDocument.Close wdDoNotSaveChanges

Actually, I do not know why you have introduced the Application in that line
of code, so you probably only need:

objWord.ActiveDocument.PrintOut
objWord.ActiveDocument.Close wdDoNotSaveChanges

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top