Thread: Stop Execution
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ArthurJ ArthurJ is offline
external usenet poster
 
Posts: 32
Default Stop Execution

Sub Main
Dim int As Integer
int = myFunction
End Sub

Function myFunction
Dim i As Integer
i = InputBox
If i9 then Exit Sub 'I want to stop execution of SubMain too!
myFunction = i
End Function

If i9 I want to not only Exit Sub for myFunction but stop SubMain too. How
do I do that?

Thanks,
Art