View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Len Len is offline
external usenet poster
 
Posts: 162
Default Exit Sub from Main Sub

Hi,

I try to find ways on how to set vba code that when anyone or more
than one of subroutines has prompted "Exit Sub" will exit the main sub
program

E.g

Sub main()
.....
.....
.....
Call abc
End Sub

Sub abc()
.....
.....
Exit Sub
.......
End Sub

Sub def()
.....
.....
Exit Sub
.......
End Sub

Any helps will be appreciated and thanks in advance

Regards
Len