Hi,
I'm using Excel to automate a mailmerge in Word.
I can successfully call the Word object was you would any other, however when I execute the code below, I get an error (5852).
it is the line where I set Destination that is the problem.
Ive applied the fix as detailed at;
and I still get the same error.
(I have added Merge fields to the Object with no problem and this works
fine in Word itself, but not from Excel. Where am I going wrong?)
So, whats the next step in elimitating this problem?
Cheers
K
I'm using Excel to automate a mailmerge in Word.
I can successfully call the Word object was you would any other, however when I execute the code below, I get an error (5852).
it is the line where I set Destination that is the problem.
Code:
With WordApp.ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.Execute
End With
Ive applied the fix as detailed at;
and I still get the same error.
(I have added Merge fields to the Object with no problem and this works
fine in Word itself, but not from Excel. Where am I going wrong?)
So, whats the next step in elimitating this problem?
Cheers
K