Using a project to save macros has many advantages, such as easier management of multiple files and restoration of the previous environment. If you save code in a VB or VBA project, you can open the code in the respective IDE only. If you save code in modules, you can import the module into either VB or VBA projects.
You save macros with the following file extensions.
Extension | Description |
.dvb | AutoCAD Map project |
.bas | Visual Basic |
.cls | Class module |
For step-by-step information about saving macros, click .