Can I write vba code inside C# project ?

Can I write vba code inside C# project ?

almutaz_86
Advocate Advocate
738 Views
2 Replies
Message 1 of 3

Can I write vba code inside C# project ?

almutaz_86
Advocate
Advocate

Good evening 

I was reading ActiveX: Developer's Guide this morning, and I found some thing about

Using ActiveX Automation with the Microsoft .NET Framework Here   and I searched about it

there is  no very good resource.

Please, any help about that ,resources ,tutorials or a simple codes.

0 Likes
Accepted solutions (1)
739 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor
Accepted solution

You might confuse ActiveX/COM API with AutoCAD VBA. While VBA is exclusively use AutoCAD ActiveX/COM API, other languages, be it .NET language or not, can also use AutoCAD ActiveX/COM API, especially when you do AutoCAD .NET API plugin (the topic of this forum), you can still use AutoCAD ActiveX/COM API in the mix with AutoCAD .NET API code. But you definitely cannot mix AutoCAD VBA code with C# or VBB.NET.

 

If you feel somehow ActiveX/COM API might fit your need after your reading and want to know more, you might as well describe a bit more on what you want to do, so that any suggestions other may provide would be more meaningful.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 3

almutaz_86
Advocate
Advocate

thank you @norman.yuan   for this explaining ‌‌👍
I'm not very good in programming ,still in first step 😊.

I found that AutoCAD .NET API harder than vba/activex ,but fast in writing codes,

because of intellisense and code fixing.

clearly : trying to coding VBA outside off VBA IDE,(Microsoft Visual Studio  for example)

0 Likes