i have macro inside which there is Userform1.show function , in this userform i have designed there is a cancel button, so what code should i write so that wen the click on cancel not just the userform but also the main macro is also deleted.
Because when i use the EXIT SUB function it just exits from the "btncancel_Click" sub and not the main sub, so is there a way where i can tell it to exit the entire macro?
Bookmarks