Ken Lassesen
Microsoft Developer Network Technology Group
October 3, 1995
Click here for a diagram of the Microsoft Office 95 Object Library in various graphics formats.
This article consists primarily of a graphic map of the Microsoft® Office 95 Object Library (MicrosoftOffice), showing its properties, methods, and child object. The name of this object is misleading because it does not involve Microsoft Office at all. This object manipulates summary information in the document. The documents must be Microsoft Excel 95, Microsoft Project 95, or Binder documents only. Any Visual Basic®-based language (Access Basic, Visual Basic, and Visual Basic for Applications) and Visual C can access the MicrosoftOffice object.
The Microsoft® Office 95 Object Library enables the developer to manipulate summary information in open documents that include summary information. The only documents currently supported (as of October 1995) are Microsoft Excel 95, Microsoft Project 95, and Binder documents. The developer cannot create the DocumentProperties object. The developer uses one of the following objects:
The Microsoft Office 95 object (MicrosoftOffice) is accessible from Visual C and many Visual Basic for Application–based products. These include Microsoft Excel version 5.0 and higher, Microsoft Access 95, Visual Basic® version 4.0, Microsoft Project, and Visual C++™ version 4.0. For further information on using this object, see your Microsoft Office product documentation and search the MSDN Library CD. A good starting point is my article "Using Microsoft OLE Automation Servers to Develop Solutions."
Figure 1 shows the relationship between objects as described by the Object Browser in Visual Basic for Applications and the Microsoft Office online Help files. A map is a good learning aid and a quick reference when developing an application. After producing a map, I found that it was easy to work with the object: I just post the appropriate map on my wall for quick reference, which is a lot faster than clicking objects in a Help file one by one to discover their properties and methods.
I have included the two most common graphics formats—encapsulated PostScript™ (.EPS) and Windows® metafile (.WMF)—as well as a copy of my original Shapeware® Visio™ version 4.0 file (.VSD). The first two formats can be printed across multiple pages using any of the commercial graphics applications—such as Adobe™ PageMaker™, Corel® Draw, or Microsoft Publisher—or using Microsoft Excel. The original Visio file is included for those who have a copy of Visio and wish to modify the diagram easily.
Figure 1. The Microsoft Office 95 Object
The objects and collections in Figure 1 are defined in Table 1. The objects are listed in the same sequence as they appear in the map.
Note You cannot create an instance. This object applies to open data files supporting summary information.
Table 1. Object and Collection Definitions
Object or Collection | Definition |
DocumentProperties collection | This collection contains the DocumentProperty objects. This is also known as the summary information. |
DocumentProperty object | This object represents one property in a document’s summary information. |
Lassesen, Ken. "Using Microsoft OLE Automation Servers to Develop Solutions." (MSDN Library, Technical Articles, Visual Basic Articles)
"Microsoft Office Binder Visual Basic Reference" (VBA_BIN.HLP) is installed with Microsoft Office 95.