Table of contents
TOC
Collapse the table of content
Expand the table of content

ObjectFrame.OLEClass Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

You can use the OLEClass property to obtain a description of the kind of OLE object contained in a chart control or an unbound object frame. Read-only String.

Syntax

expression. OLEClass

expression A variable that represents an ObjectFrame object.

Remarks

This property is set automatically in the control's property sheet to a string expression when you click Object on the Insert menu to add an OLE object to a form. The OLEClass property setting is read-only in all views.

Note If you are using Automation (formerly called OLE Automation) and need to specify a name to refer to the OLE object, use the Class property.

The OLEClass property and the Class property are similar but not identical. The OLEClass property setting is a general description of the OLE object whereas the Class property setting is the name used to refer to the OLE object in Visual Basic. Examples of OLEClass property settings are Microsoft Excel Chart, Microsoft Word Document, and Paintbrush Picture.

Example

The following example displays a message indicating the OLE class for the "Customer Picture" unbound object frame on the "Order Entry" form.

MsgBox "The OLE class = " &; Forms("Order Entry").Controls("Customer Picture").OLEClass

See also

Concepts

ObjectFrame Object

© 2017 Microsoft