.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA Calls From .NET

1 REPLY 1
Reply
Message 1 of 2
Anonymous
216 Views, 1 Reply

VBA Calls From .NET

Can a VBA routine (macro) be called from win .NET - does it really make sence to attmpt it. I have an app written in VBA, I want to use the code in a new app that calls the vba routines already written. Rather than converting all the vba commands to new "autocad command" it seems quicker to deployment to use whats written and call the vba functions as need. Rather than converting them to .NET Autocad Command and then writting the code to call the commands. Does this make sense? 🙂
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

It can be done via COM Interop. The AcadApplication object has all of the
methods you'll need to load and run VBA macros. However, there isn't any
direct way to pass data between your .NET app and VBA.
--
Bobby C. Jones

wrote in message news:5174057@discussion.autodesk.com...
Can a VBA routine (macro) be called from win .NET - does it really make
sence to attmpt it. I have an app written in VBA, I want to use the code in
a new app that calls the vba routines already written. Rather than
converting all the vba commands to new "autocad command" it seems quicker to
deployment to use whats written and call the vba functions as need. Rather
than converting them to .NET Autocad Command and then writting the code to
call the commands. Does this make sense? 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost