
Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Thank you for the suggestion Graham !!!
But, actually we are trying to cater to the generic scenario when word
hangs.
In a normal scenario ,after doing a mailmerge (programmatically), the
merged output document is produced and the subsequent mail merges go
through fine.
But, in some cases, the mail merge fails, eg,it pop-ups some dialogs,
like "Record and header delimiter" or "invalid merge field". These
dialogs require manual intervention but, programmatically it is
difficult to supress these dialogs, the reason being there are
multiple scenarios or worse still the WORD session itself is hidden.
Thus, i need a generic solution wherein, if the word hangs or is in a
inconsistent state, i can forcibly kill it, open a fresh session again
and continue the mailmerges.
Please advice!!
Thanks & Regards,
Veena.
> If you can find a way to forcibly kill Word using vba that is also hung, and
> then manage to deal with all the problems created by orphaned temporary
[quoted text clipped - 21 lines]
> > Thanks & Regards,
> > Veena.
Graham Mayor - 11 May 2004 09:40 GMT
Take a look at vba help for 'On Error Statement' which should cover your
requirements.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
> Thank you for the suggestion Graham !!!
> But, actually we are trying to cater to the generic scenario when word
[quoted text clipped - 57 lines]
>>> Thanks & Regards,
>>> Veena.