New modules and user forms can be added to a VBA project file.
- In the VBA IDE, Project Explorer window, select the project to which you want to add a new component.
- From the Insert menu, click UserForm, Module, or Class Module.
The new component is add to the project and appears in the Project Explorer window.