G
Graham
Hi
I have some code which opens a Word template then runs a mail merge.
With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=True
End With
What I want to do is now close the word template
If I use ActiveDocument.Close then the newly created mail merge document is
closed not the original word template.
Any help greatly appreciated.
Regards
GRaham
I have some code which opens a Word template then runs a mail merge.
With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=True
End With
What I want to do is now close the word template
If I use ActiveDocument.Close then the newly created mail merge document is
closed not the original word template.
Any help greatly appreciated.
Regards
GRaham