R
Richard Grene
I do a mailmerge and it works fine for word 2002 but not for Office XP. On
Word 2003, only the template pops up without the merge taking place.The
following is my code.
Thanks,
Richard
wrdApp = GetObject(, "Word.Application")
wrdApp.Visible = True
wrdApp.Documents.Open(sLetterFileName)
If wrdApp.ActiveDocument.MailMerge.State =
Word.WdMailMergeState.wdMainAndDataSource Then
wrdApp.ActiveDocument.MailMerge.Execute()
End If
Word 2003, only the template pops up without the merge taking place.The
following is my code.
Thanks,
Richard
wrdApp = GetObject(, "Word.Application")
wrdApp.Visible = True
wrdApp.Documents.Open(sLetterFileName)
If wrdApp.ActiveDocument.MailMerge.State =
Word.WdMailMergeState.wdMainAndDataSource Then
wrdApp.ActiveDocument.MailMerge.Execute()
End If