W
Walter Briscoe
I run Word and Excel 2003. I have a VBA macro which mailmerges an Excel
file into a Word file. Usually, a new file window is created and gets
focus. My macro then continues and does some post processing.
Yesterday, I found that an error window containing "A field calculation
error occurred in record 1." was also created and got the focus.
This got me thinking. I have a couple of questions for the experts here:
1) Do mailmerge error messages all get tagged "Error!"?
Mine is "Error! Bookmark not defined" and should be easy to fix. If the
tag is mere coincidence, then going from the error window to the
appropriate part of the output document would be hard.
2) How do I get my VBA to recognise that an error file was output and
took focus and force focus to proceed to the output data window rather
than the error window?
file into a Word file. Usually, a new file window is created and gets
focus. My macro then continues and does some post processing.
Yesterday, I found that an error window containing "A field calculation
error occurred in record 1." was also created and got the focus.
This got me thinking. I have a couple of questions for the experts here:
1) Do mailmerge error messages all get tagged "Error!"?
Mine is "Error! Bookmark not defined" and should be easy to fix. If the
tag is mere coincidence, then going from the error window to the
appropriate part of the output document would be hard.
2) How do I get my VBA to recognise that an error file was output and
took focus and force focus to proceed to the output data window rather
than the error window?