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.48 visits per day | Last visit: 13 hours ago | Total visits: 4,468
Popularity: 6.72 visits per day | Last visit: 10 hours ago | Total visits: 4,635
Popularity: 5.83 visits per day | Last visit: 10 hours ago | Total visits: 4,021
Popularity: 5.33 visits per day | Last visit: 10 hours ago | Total visits: 3,675
Popularity: 5.42 visits per day | Last visit: 5 hours ago | Total visits: 3,735
Loading VBA Projects with AutoLISP
Popularity: 4.31 visits per day | Last visit: 5 hours ago | Total visits: 2,878
Loading VBA Files with Visual LISP
Popularity: 10.72 visits per day | Last visit: 3 minutes ago | Total visits: 7,160
Popularity: 4.51 visits per day | Last visit: 32 minutes ago | Total visits: 3,106
Popularity: 2.25 visits per day | Last visit: 52 minutes ago | Total visits: 1,551
Popularity: 34.45 visits per day | Last visit: 45 minutes ago | Total visits: 23,722
VBA Applications
Popularity: 2.62 visits per day | Last visit: 5 hours ago | Total visits: 1,812
Popularity: 3.19 visits per day | Last visit: 5 hours ago | Total visits: 2,134
Popularity: 10.72 visits per day | Last visit: 47 minutes ago | Total visits: 7,159
Popularity: 4.3 visits per day | Last visit: 5 hours ago | Total visits: 2,637
