AfraLISP - Learn AutoLISP for AutoCAD productivity

Visual Basic for Applications (VBA)

What is Visual Basic for Applications?

Visual Basic for Applications or VBA for short is a general programming language and development environment specifically designed to customize and extend applications that include the VBA application programming interface (API). It is based on Microsoft Visual Basic but is used by many different applications, including AutoCAD. In AutoCAD, VBA is used to access objects via the ActiveX Automation interface.

The ActiveX Automation interface was first introduced in AutoCAD Release 14, at the same time as Visual LISP and this goes some way to explain why Visual LISP was never really developed any further. VBA has a number of advantages over Visual LISP, including the integrated development of dialog boxes (VBA does not require DCL) and the fact that VBA is a generic language and not specific to AutoCAD.

Not Installed

In recent times, VBA has fallen out of favour with Autodesk, who are now promoting the use of more modern development environments with AutoCAD, specifically VB.NET. Autodesk are currently encouraging developers to migrate from VBA to VB.NET and the Visual Basic Editor was dropped from the AutoCAD 2010 installation although it is still available as a download. For current details of the Autodesk policy on VBA, see this VBA support document.

VBA Tutorials

  • Popularity: 6.55 visits per day  |  Last visit: 32 hours ago  |  Total visits: 33,488

  • Popularity: 7.18 visits per day  |  Last visit: 6 hours ago  |  Total visits: 36,688

  • Popularity: 5.7 visits per day  |  Last visit: 20 hours ago  |  Total visits: 29,152

  • Popularity: 5.32 visits per day  |  Last visit: 32 hours ago  |  Total visits: 27,208

  • Popularity: 5.2 visits per day  |  Last visit: 2 hours ago  |  Total visits: 26,596

  • Popularity: 4.92 visits per day  |  Last visit: 13 hours ago  |  Total visits: 25,025

  • Popularity: 8.97 visits per day  |  Last visit: 13 hours ago  |  Total visits: 45,663

  • Popularity: 4.79 visits per day  |  Last visit: 7 hours ago  |  Total visits: 24,478

  • Popularity: 2.02 visits per day  |  Last visit: 16th Mar 2024  |  Total visits: 10,307

  • Popularity: 10.31 visits per day  |  Last visit: 12 hours ago  |  Total visits: 52,709

VBA Applications

  • Popularity: 3.22 visits per day  |  Last visit: 16th Mar 2024  |  Total visits: 16,465

  • Popularity: 4.19 visits per day  |  Last visit: 2 hours ago  |  Total visits: 21,337

  • Popularity: 9.3 visits per day  |  Last visit: 5 hours ago  |  Total visits: 47,330

  • Popularity: 4.43 visits per day  |  Last visit: 2 hours ago  |  Total visits: 22,317

VBA Tips'n'Tricks