.NET

Reply
New Member
1 Posts
0 Kudos
Registered: ‎05-13-2006
Post 1 of 2

VBA Calls From .NET

96 Views, 1 Replies
05-13-2006 11:50 PM
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? :smileyhappy:
*Bobby C. Jones
Post 2 of 2

Re: VBA Calls From .NET

05-16-2006 10:06 AM in reply to: Hagerman
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? :smileyhappy:
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post