Execution Error

Execution Error

Anonymous
Not applicable
728 Views
5 Replies
Message 1 of 6

Execution Error

Anonymous
Not applicable
While in the VB Editor, I can run a macro, and it works fine. If I switch over to AutoCAD, and use the -vbarun command to run the exact same macro, I get an "Execution error" on the command line, however the macro ran ok. Any ideas why this "Execution error" only occurs from the Acad command line?
0 Likes
729 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Search this ng; it has been discussed several time before. -- R. Robert Bell "jbryant4" wrote in message news:[email protected]... While in the VB Editor, I can run a macro, and it works fine. If I switch over to AutoCAD, and use the -vbarun command to run the exact same macro, I get an "Execution error" on the command line, however the macro ran ok. Any ideas why this "Execution error" only occurs from the Acad command line?
0 Likes
Message 3 of 6

Anonymous
Not applicable
Unload Me fixed it. Is there a way to check to see if a .dvb is already loaded? Thanks
0 Likes
Message 4 of 6

Anonymous
Not applicable
Again, search this ng, but this time look for how to load/execute VBA projects (hint: you probably don't need to worry about that, given how you load/execute the macro). -- R. Robert Bell "jbryant4" wrote in message news:[email protected]... Unload Me fixed it. Is there a way to check to see if a .dvb is already loaded? Thanks
0 Likes
Message 5 of 6

Anonymous
Not applicable
By any chance are you using the End keyword instead of Exit? -- ---- Ed ---- "jbryant4" wrote in message news:[email protected]... > Unload Me fixed it. Is there a way to check to see if a .dvb is already loaded? Thanks
0 Likes
Message 6 of 6

Anonymous
Not applicable
Yes I found a stray END. I am using a large code piece from another user. I replaced EDN with UNLOAD ME and it got rid of the "Execution Error". The other problem I solved by:

(vl-vbarun (strcat
(findfile "xmltofdv.dvb")
"!FDVessel.XMLtoFDV_Start"
)
)

Thanks
ps The VBA Help Files really SUCK!
0 Likes