VBA project files can be automatically loaded into AutoCAD.
There are two different ways to load a VBA project automatically:
When VBA is loaded it will look in the AutoCAD directory for a project named acad.dvb. This file is automatically loaded as the default project.
Any project other than the default, acad.dvb, can be used by explicitly loading that project at startup using the VBALOAD command. The following code sample uses the AutoLISP startup file to load VBA and a VBA project named myproj.dvb when AutoCAD is started. Start notepad.exe and create (or append to) acad.lsp the following lines: