sub( or function )
on error goto errhandle:
do some thing
exit sub( or exit function )
errhandle:
do some error thing
end sub( or function )
on error goto errhandle:
do some thing
exit sub( or exit function )
errhandle:
do some error thing
end sub( or function )
......
On error resume next
......