how to exit running command-autocad command way

how to exit running command-autocad command way

Anonymous
Not applicable
16,704 Views
5 Replies
Message 1 of 6

how to exit running command-autocad command way

Anonymous
Not applicable
in any autocad command ,the command exits when is pressed.
but in my vba code after pressing it shows "execution error".the real problem is
when i use multiple command (to run my command repeatedly)my vba macro does not end by pressing and it continues infinitely.and it does not allow to close even autocad.
so pl give me any easy (direct)solution to exit my macro by pressing .
thanx
0 Likes
16,705 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
i m sorry i m posting same question ,because "esc" was somehow missing.

in any autocad command ,the command exits when "esc" is pressed.
but in my vba code after pressing "esc" it shows "execution error".the real problem is
when i use multiple command (to run my command repeatedly)my vba macro does not end by pressing "esc" and it continues infinitely.and it does not allow to close even autocad.
so pl give me any easy (direct)solution to exit my macro by pressing "esc" .
thanx
0 Likes
Message 3 of 6

Anonymous
Not applicable
Hi,

In many cases "Control-Break" will stop a running VBA program and bring up a
message box with options asking what you wish to do next.

Depending on what is happening in the code, you may need to use it several
times.

--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
wrote in message news:5454782@discussion.autodesk.com...
i m sorry i m posting same question ,because "esc" was somehow missing.

in any autocad command ,the command exits when "esc" is pressed.
but in my vba code after pressing "esc" it shows "execution error".the real
problem is
when i use multiple command (to run my command repeatedly)my vba macro does
not end by pressing "esc" and it continues infinitely.and it does not allow
to close even autocad.
so pl give me any easy (direct)solution to exit my macro by pressing "esc" .
thanx
0 Likes
Message 4 of 6

Ed__Jobe
Mentor
Mentor
You can use the method in the first post of this thread. I found it by searching this newsgroup for the word "escape".

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 6

arcticad
Advisor
Advisor
link is empty
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 6 of 6

Ed__Jobe
Mentor
Mentor
It was working when I posted it.?. Oh well, he can use the 'ol search method I mentioned.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes