Microsoft Office 2000/Visual Basic Programmer's Guide   

Setting References and Working with Object Variables

The first step in automating one Office application from another is referencing the application you want to automate. This reference lets your application "see" the objects exposed by the other application. In most cases, this means setting a reference to the application's type library by using the References dialog box.