View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pierre via OfficeKB.com[_2_] Pierre via OfficeKB.com[_2_] is offline
external usenet poster
 
Posts: 122
Default question error handling

hi experts,

i have a simple error handling question.

i have the following code:

private sub test()
on error goto errorhandling

my stuff

exit sub
errorhandling:
My error
end sub

Here's my question:
if in 'my stuff' i have, next to some calculation code, a module i want tot
execute, do i have to put the 'on errror' codelines also in the module is is
it enough to have it in the main code above?

Thanks,
Pierre


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1