Hi Experts,
I wonder since yesterday, whether there is a way to handle error that occurs many times.
For example the following code go into error handling when first time a number is divided with 0, the other nine time it throws vba run time error. Is there a way that the code go into error handler the other nine time also ?
PHP Code:
sub test()
dim i as integer
on error goto myerror
for i = 1 to 10
debug.print i/0
next i
myerror:
msgbox "You tried to divide by zero"
end sub
Bookmarks