VBA applications can be distributed two different ways:
- Embedded in an AutoCAD drawing file
- Stored in a VBA project file
You must choose a distribution option that is appropriate for your application. Applications that are applicable to the current drawing, and do not access other drawings, are often embedded in the drawing. By embedding the application in the drawing, you can always be sure the application is loaded, and therefore available to the user whenever the drawing is open.
Applications that are used by many people, are updated frequently, need to open and close other drawings, or are not used frequently you may want to store in a VBA project file. In this way, there is one central location for the application, and everyone can be sure to use the latest version.
For more information on embedded projects and VBA project files, see Understand Embedded and Global VBA Projects.