References to third-party libraries and other project files can be added to a VBA project.
- In the VBA IDE, Project Explorer window, select the project to which you will be adding the reference.
- From the Tools menu, click References.
- In the References dialog box, click Browse.
- In the Add Reference dialog box, select the project file you want to reference and then click Open.
- Click OK button to complete the reference addition.