Microsoft Office 2000/Visual Basic Programmer's Guide |
The Property Set procedure behaves like the Property Let procedure, except that you use it to assign an object reference to an object property. You can then use a corresponding Property Get procedure to return the object reference.
There are a couple of cases in which it's useful to create an object property. When you want to create a new object that provides all the properties, methods, and events of an existing object, plus additional ones that you've defined, you can create an object property that returns a reference to the existing object. In addition, when you create an object model that has a hierarchy — the object contains other objects or collections — you must create an object property in order to access a lower-level object in the hierarchy.