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.
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 is still available as a download. For current details of the Autodesk policy on VBA, see this VBA support document.
VBA Tutorials
Popularity: 6.71 visits per day | Last visit: 4 hours ago | Total visits: 5,292
Popularity: 6.96 visits per day | Last visit: 43 minutes ago | Total visits: 5,484
Popularity: 6.1 visits per day | Last visit: 21 hours ago | Total visits: 4,808
Popularity: 5.48 visits per day | Last visit: 21 hours ago | Total visits: 4,317
Popularity: 5.54 visits per day | Last visit: 4 hours ago | Total visits: 4,366
Loading VBA Projects with AutoLISP
Popularity: 4.31 visits per day | Last visit: 6 hours ago | Total visits: 3,307
Loading VBA Files with Visual LISP
Popularity: 10.7 visits per day | Last visit: 2 hours ago | Total visits: 8,202
Popularity: 4.71 visits per day | Last visit: 6 hours ago | Total visits: 3,706
Popularity: 2.25 visits per day | Last visit: 5 hours ago | Total visits: 1,772
Popularity: 33.32 visits per day | Last visit: 3 hours ago | Total visits: 26,239
VBA Applications
Popularity: 2.69 visits per day | Last visit: 12 hours ago | Total visits: 2,123
Popularity: 3.27 visits per day | Last visit: 15 hours ago | Total visits: 2,513
Popularity: 10.79 visits per day | Last visit: 50 minutes ago | Total visits: 8,272
Popularity: 4.24 visits per day | Last visit: 2 hours ago | Total visits: 3,015
