M
Matthew230
Hi,
I am struggling with the MS Word's event handling system.
I am trying to create a document that automates an email merge right up
until the user selects wizard stage 6 'Email Merge' (The reason is that is
the user selects it then it doesn't give the "application sending email on
your behalf" secuirty issues.
The problem is that I want things to happen after the mailmerge, and there
is the event handler. I can get it working fine when the document if first
opened, however as soon as the mail merge data is added and the document type
changed to wdemail, it seems to forget that there are events to be done, it
also loses all of it's variables, almost as if it has terminated and
restarted without regaining the variable values. I've tried re-calling the
eevnt handler register at every opportunity, but still it seems to forget.
Any help of this much appreciated as it is drving me nuts.
Matt
I am struggling with the MS Word's event handling system.
I am trying to create a document that automates an email merge right up
until the user selects wizard stage 6 'Email Merge' (The reason is that is
the user selects it then it doesn't give the "application sending email on
your behalf" secuirty issues.
The problem is that I want things to happen after the mailmerge, and there
is the event handler. I can get it working fine when the document if first
opened, however as soon as the mail merge data is added and the document type
changed to wdemail, it seems to forget that there are events to be done, it
also loses all of it's variables, almost as if it has terminated and
restarted without regaining the variable values. I've tried re-calling the
eevnt handler register at every opportunity, but still it seems to forget.
Any help of this much appreciated as it is drving me nuts.
Matt