Welcome back! This month we're going to look at how to automatically load and run VBA macros using straight VBA. The idea for this article came when I noticed the same question repeated over and over again on the newsgroups and realized that most VBA programmers have no idea how to do this. Most assume it requires AutoLISP. The reality is that the process requires AutoLISP or Visual LISP only if the end user needs a command-line shortcut to a macro. Even then, you don't necessarily need a LISP file, as I'll demonstrate. What the process does require are two files we need to create ACAD.DVB and ACAD.RX. Let's start with the ACAD.DVB file. First, fire up AutoCAD. Then go into the VBA Manager and create a new file. While in the VBA Manager dialog box, save the new file as ACAD.DVB. Now, open the VBA IDE and start programming.
|