AutoCAD VBA Commands Reference (VBA/ActiveX)

Commands related to VBA projects and the VBA IDE.

VBAIDE

Brings up the VBA IDE.

The VBA IDE allows you to edit, run, and debug programs interactively. Although the VBA IDE is invoked only when AutoCAD is running, it can be minimized, opened, and closed independent of the AutoCAD Application window.

VBALOAD
Loads a VBA project into the current AutoCAD session.
VBAMAN
Displays the VBA Manager allowing you to view, create, load, close, embed, and extract projects.
VBANEW
Creates a new project.
VBAPREF
Displays the Options dialog box and allows you to set VBA-specific options for the current session.
VBARUN
Runs a VBA macro from the Macros dialog box or from the AutoCAD command line.
VBASTMT
Executes a VBA statement from the AutoCAD command line.
VBAUNLOAD

Unloads a VBA project from the current AutoCAD session.

If the VBA project is modified but not saved, the user is asked to save it with the Save Project dialog box (or command line equivalent).