Is there a way to close the MailMerge DataSource on an active document? Here is the code I tried, but it did not work:
If ActiveDocument.MailMerge.DataSource.Name = "c:\pol.txt" Then
ActiveDocument.MailMerge.DataSource.Close
End If
The code that follows this copies a file as c:\pol.txt, but I get a runtime error 70 because it appears the document has this open as the datasource.
My think is that if I can close the datasource, then my runtime error will go away.
Brian
If ActiveDocument.MailMerge.DataSource.Name = "c:\pol.txt" Then
ActiveDocument.MailMerge.DataSource.Close
End If
The code that follows this copies a file as c:\pol.txt, but I get a runtime error 70 because it appears the document has this open as the datasource.
My think is that if I can close the datasource, then my runtime error will go away.
Brian