S
Scott McBurney
I've got a strange situation I'm running into using Word XP, and 2003 appears
to have a similar problem.
We have a VBA macro that uses a custom COM object to export a CSV file from
another application.
The macro then goes on to associate the CSV file to the current document and
set it up for a mail merge, leaving the user in the Word XP mail merge wizard.
If the user inserts a field that contains multiple lines (such as the
address block) and then chooses to peform the mail merge to a new document,
all works well. The macro terminates and everyone is happy.
However, when the user closes the new document and closes the original merge
document, thats when Word throws an error:
"The instruction at "0x73489dee" referenced memory at "0x09006e8c". The
memory could not be read."
Any clue as to whats up here? If the mail merge contains fields that have
only a single line of data (such as first name, last name), this doesn't
happen. If the macro doesn't use our COM objects to perform an export, and
instead uses an existing CSV file, this doesn't happen either.
I'm quite perplexed.
to have a similar problem.
We have a VBA macro that uses a custom COM object to export a CSV file from
another application.
The macro then goes on to associate the CSV file to the current document and
set it up for a mail merge, leaving the user in the Word XP mail merge wizard.
If the user inserts a field that contains multiple lines (such as the
address block) and then chooses to peform the mail merge to a new document,
all works well. The macro terminates and everyone is happy.
However, when the user closes the new document and closes the original merge
document, thats when Word throws an error:
"The instruction at "0x73489dee" referenced memory at "0x09006e8c". The
memory could not be read."
Any clue as to whats up here? If the mail merge contains fields that have
only a single line of data (such as first name, last name), this doesn't
happen. If the macro doesn't use our COM objects to perform an export, and
instead uses an existing CSV file, this doesn't happen either.
I'm quite perplexed.