Mar 22, 2006 #1 TyP Computer Joined Mar 22, 2006 Messages 3 Location RU Hi! I need help! How to catch an error in Visual Basic for Word2000? Is there any constructions like Try...Catch...Finally? P.S. I need to find out whether the file exist.
Hi! I need help! How to catch an error in Visual Basic for Word2000? Is there any constructions like Try...Catch...Finally? P.S. I need to find out whether the file exist.
Mar 23, 2006 1 #2 TCARPENTER1 Computer Joined Sep 22, 2005 Messages 234 Hi TyP, A couple of options, under the Tools->Options pull-down, under the General tab, in the section marked Error Trapping, you can set it to Break on All Errors, or you can create your own error trapping with an: Code: On Error GoTo errHandler ... .. errHandler: .. . HTH Todd Upvote 0 Downvote
Hi TyP, A couple of options, under the Tools->Options pull-down, under the General tab, in the section marked Error Trapping, you can set it to Break on All Errors, or you can create your own error trapping with an: Code: On Error GoTo errHandler ... .. errHandler: .. . HTH Todd
Mar 23, 2006 1 #3 joerd Chemical Joined Sep 27, 2002 Messages 531 Location US Don't forget to put an Exit Sub above the errHandler: or you'll run the errHandler every time at the end of your procedure. Cheers, Joerd Please see FAQ731-376 for tips on how to make the best use of Eng-Tips. Upvote 0 Downvote
Don't forget to put an Exit Sub above the errHandler: or you'll run the errHandler every time at the end of your procedure. Cheers, Joerd Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
Mar 27, 2006 Thread starter #4 TyP Computer Joined Mar 22, 2006 Messages 3 Location RU 2 TCARPENTER1 & joerd: Thank you so much! I have done it! And it works Upvote 0 Downvote