Hi Y'all
i know this is silly, but i can't figure it out. please help :
i want to add "Success" to my cell, if it's successfully executed. but somehow even there's no error, my errHandler still run, so it gives "Failure".
how to do this properly?
thanks a lot
warm regards
Adrian
i know this is silly, but i can't figure it out. please help :
Code:
for i = 1 to 2
on error goto ErrHandler
'my code here
sheets("Panel1").range("A1").value = "Success"
errHandler :
sheets("Panel1").range("A1").value = "Failure"
resume nextitiration
nextitiration :
next i
i want to add "Success" to my cell, if it's successfully executed. but somehow even there's no error, my errHandler still run, so it gives "Failure".
how to do this properly?
thanks a lot
warm regards
Adrian