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 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.63 visits per day | Last visit: 1 hour ago | Total visits: 32,767
Popularity: 7.28 visits per day | Last visit: 1 hour ago | Total visits: 35,952
Popularity: 5.79 visits per day | Last visit: 1 hour ago | Total visits: 28,588
Popularity: 5.4 visits per day | Last visit: 10 hours ago | Total visits: 26,703
Popularity: 5.28 visits per day | Last visit: 35 hours ago | Total visits: 26,078
Loading VBA Projects with AutoLISP
Popularity: 4.96 visits per day | Last visit: 3 hours ago | Total visits: 24,422
Loading VBA Files with Visual LISP
Popularity: 9.06 visits per day | Last visit: 10 hours ago | Total visits: 44,582
Popularity: 4.86 visits per day | Last visit: 1 hour ago | Total visits: 23,995
Popularity: 2.04 visits per day | Last visit: 10 hours ago | Total visits: 10,092
Popularity: 10.57 visits per day | Last visit: 15 hours ago | Total visits: 52,231
VBA Applications
Popularity: 3.26 visits per day | Last visit: 40 hours ago | Total visits: 16,136
Popularity: 4.25 visits per day | Last visit: 11 hours ago | Total visits: 20,922
Popularity: 9.42 visits per day | Last visit: 1 hour ago | Total visits: 46,354
Popularity: 4.49 visits per day | Last visit: 1 hour ago | Total visits: 21,840