Author Topic: Vb to VBA  (Read 9287 times)

0 Members and 1 Guest are viewing this topic.

krampaul82

  • Guest
Re: Vb to VBA
« Reply #15 on: February 23, 2011, 04:11:52 PM »
It does, in fact, if you take your VBA code and paste it into the VB6 upgrade window, it will attempt to convert it for you. The only issue I had was most of the interfaces aren't available until you actually add the required libraries so you will probably have some types that don't convert properly.

Oh, and you have to make sure to install the .NET libraries for each version being used.
VS '10 Express comes with .NET 4.0 but I'm not sure if AutoCAD is fully compatable with this version - since I haven't built an AutoCAD assembly in well over a year ... and the last version I worked on was A2k8

Oh, if you get the entire VS package, you can also forray into C# ...  it isn't hugely different from VB except in some of the code delimiters, and the fact that case is important (i.e. thisObject is different from thisobject) ... C# seems to be in-vogue right now ... although I never quite understood why, since VB.NET and C#.NET all get compiled to CLI anyway ... the reflector will convert the code between as needed with few modifications.

Good luck!
Could you provide a link for download?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Vb to VBA
« Reply #16 on: February 23, 2011, 08:28:18 PM »
To download the VB Express go to the Microsoft website:

http://www.microsoft.com/express/downloads/

click on the Visual Studios 2010 Express tab, then click the item "Visual Basic 2010 Express Edition". Make sure to select the language version of your choice and then select the Free Download icon to download the setup file to your computer.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

krampaul82

  • Guest
Re: Vb to VBA
« Reply #17 on: February 24, 2011, 10:54:54 AM »
To download the VB Express go to the Microsoft website:

http://www.microsoft.com/express/downloads/

click on the Visual Studios 2010 Express tab, then click the item "Visual Basic 2010 Express Edition". Make sure to select the language version of your choice and then select the Free Download icon to download the setup file to your computer.
Thank You Keith! I really appreciate all of your help, both past and present,  It has made my life WAAAY easier... Mark