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

OLEFormat.Object Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns an Object that represents the specified OLE object's top-level interface. This property allows you to access the properties and methods of an ActiveX control or the application in which an OLE object was created. The OLE object must support OLE Automation for this property to work. Read-only.


expression. Object

_expression_A variable that represents an OLEFormat object.

Return Value



This example sets the value of the first shape in the active publication. For the example to work, this first shape must be an ActiveX control (for example, a check box or an option button).

Dim myObj As Object 

With ActiveDocument.Pages(1).Shapes(1).OLEFormat 
 Set myObj = .Object 
End With 

myObj.Value = True
© 2018 Microsoft