PDA

View Full Version : [SOLVED] Remove mailmerge datasource



mdmackillop
01-25-2005, 06:26 AM
Hi all,
Anyone got a line of code to remove the mailmerge datasource, thus restoring the active mailmerge document to a normal word doc.? :think:
MD

Ken Puls
01-25-2005, 09:50 AM
Hi Malcolm,

I thought that it was something like ...

MailMergeDataSource.Close

... but it's been a while since I coded my mailmerge stuff. I'll dig around and see if I can confirm that.

jeeves
01-25-2005, 11:00 AM
hope this helps:


' clear mail merge association on this doc

ActiveDocument.MailMerge.MainDocumentType = wdNotAMergeDocument

mdmackillop
01-25-2005, 02:32 PM
Thanks Jeeves.
I tried recording a macro in 2000 but with no result. I just found that one in 2003, so I hope it's retrospective.
MD

Ken Puls
01-25-2005, 02:36 PM
Thanks Jeeves.
I tried recording a macro in 2000 but with no result. I just found that one in 2003, so I hope it's retrospective.
MD
Hi Malcolm,

Just checked Word 97, and it is supported there.

Cheers,

mdmackillop
01-25-2005, 02:41 PM
Thanks Ken.