We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

How to exit from a macro [closed]

asked 2012-12-11 12:48:09 +0200

Gaffer gravatar image

I can use:

Exit Sub

To leave a subroutine early.

I can use:

Exit Function

To leave a function early.

But how can I simply stop running the macro altogether (regardless of how deeply nested I am...)

I expected it to be something like:

Exit Macro

but it isn't :-(

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-19 12:55:10.410243

1 Answer

Sort by » oldest newest most voted

answered 2012-12-11 13:18:25 +0200

JohnSUN gravatar image


edit flag offensive delete link more


Thankyou :-)

Gaffer gravatar imageGaffer ( 2012-12-11 14:48:11 +0200 )edit

And just stop executing altogether if a fatal error has occurred.

eeigor gravatar imageeeigor ( 2021-04-08 19:33:42 +0200 )edit

Question Tools


Asked: 2012-12-11 12:48:09 +0200

Seen: 3,766 times

Last updated: Dec 11 '12