Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove mailmerge from a document 1

Status
Not open for further replies.

TheWizard78

Programmer
Jun 28, 2004
18
CA
Hi group,
I have create manually a new word document and I have link it with a free table (dbf), then I have insert all the 5 fields. My table contain only 100 records. I have save my document and quit word. Now the information related to this tables is save inside this document. How can I remove the mailmerge from my document and leave the information according to the table in my document

Because I want to send this doc file by email without sending the table and keep the information inside it.
For all the records.

The way I have use to do my mailmerge is :
oWord = CreateObject("Word.Application")

I have try with:
oWord.ActiveDocument.MailMerge.DataSource.Close()
but it only close the table, it doesn't remove the ConnectString and TableName from the document

Do anyone have a solution for this problem
 
This may or may not work:

Once you've done the mailmerge, select all the text in the Word document, copy it, start a new Word document and paste the text.

From what you write, I wonder if you've actually done mailmerge .Execute() ?

Chris
 
Thank you very much "ChrisCarroll", I tought that this method was only to apply the MailMerge and not to create a new file with the merge save inside it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top