Errors Without Errors

Errors Without Errors

Anonymous
Not applicable
220 Views
2 Replies
Message 1 of 3

Errors Without Errors

Anonymous
Not applicable
Hi Everyone,

I have a VBA program that seems to run exactly as designed, but prints the
message "Execution Error" on the AutoCad command line after being called
with (command "-vbarun" "mymacroname"). If I run the program from the VBA
IDE, or from the VBA Manager I do not get any error messages (break on all
errors is switched on). Am I doing something wrong, or is this a known
defect? Any help greatly appreciated.

Thanks,

Gary
0 Likes
221 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Gary,

Try changing your string to the following

(command "_-vbarun" "mymacroname")

Joe

Gary McMaster wrote in message
news:[email protected]...
> Hi Everyone,
>
> I have a VBA program that seems to run exactly as designed, but prints the
> message "Execution Error" on the AutoCad command line after being called
> with (command "-vbarun" "mymacroname"). If I run the program from the VBA
> IDE, or from the VBA Manager I do not get any error messages (break on all
> errors is switched on). Am I doing something wrong, or is this a known
> defect? Any help greatly appreciated.
>
> Thanks,
>
> Gary
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks for the response Joe. I searched this group for "execution" (I think)
and found a similar post which cited the problem as an unwanted "end"
statement (David Gardner). I found the "end" statement in a cancel button.
It was indeed the source of the problem.

Gary
0 Likes