View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Arnie[_2_] Arnie[_2_] is offline
external usenet poster
 
Posts: 6
Default End routine by clicking 'X' on Userform

Hello,

I have a routine which calls a Userform. On the userform someone can make a
choice. After that the routine continues.
But I want to stop the complete routine if someone clicks on the 'X' at the
right corner. How to?

Exit sub won't work this only stops the userform and the main routine still
continues.

Arnie