Microsoft Office 2000/Visual Basic Programmer's Guide   

Working with Objects

To work with the objects exposed by an object model, you must first declare an object variable and set a reference to the object you want to work with. Once you've established a reference to an object, you can work with its properties, methods, or events.