Thursday 25 September 2014

Error handling On error resume next and On error goto 0

Option explicit

On error resume next

val1 = 10

print "Value : "&val1

'err.clear
print "Error Number : "&err.number

print "Error Description : "&err.description

On error goto 0

msgbox val1



No comments:

Post a Comment