Add object libraries to your Visual Basic project

You can select another application's objects that you want available in your code by setting a reference to that application's object library.

  1. On the Tools menu, click References.

  2. Under Available References, select the check box for the object library that you want available in your Visual Basic project.

    Note: You should clear the check box for the object libraries that you do not want in your Visual Basic project to reduce the time it takes to compile.

  3. To set the order in which the object libraries are accessed, under Available References, select the object library, and then click the Priority buttons to move the object library up or down.

  4. To add other object libraries to Available References, click Browse, and then find the object library that you want.

Connect with an expert
Contact us
Expand your skills
Explore training

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×