isischen
asked on
Word 2003: How can I terminate a macro?
I want to terminate my application prematurely after the condition of an IF...THEN...END IF is met. What code can I use? Once I saw VBA use something like APPLICATION.CLOSE. But there's no such method exist! ( I think my memory is weak.)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Apologies, you want to quit the application, not the macro.
as per Kenny, application.quit should work!?
as per Kenny, application.quit should work!?
If <your condition here> then exit sub 'no need for end if when you limit to one line!
HTH
Darren