You can insert class modules, standard modules, and text files that are stored on the hard disk into the active module.
To insert a file
1 From AutoCAD Map, choose Tools > Macro > Visual Basic Editor.
2 In the Project Explorer, double-click a module to open its code window.
3 Click the location in the window where you want to insert the code from the file.
4 Choose Insert > File.
5 Browse for the folder and file type of the file you want to insert.
6 Select the file, and click Open.
The stored code appears in the code window of the active module.