OLEFormat object (Word)

Represents the OLE characteristics (other than linking) for an OLE object, ActiveX control, or field.

Remarks

Use the OLEFormat property for a shape, inline shape, or field to return the OLEFormat object. The following example displays the class type for the first shape on the active document.

MsgBox ActiveDocument.Shapes(1).OLEFormat.ClassType

Not all types of shapes, inline shapes, and fields have OLE capabilities. Use the Type property for the Shape and InlineShape objects to determine what category the specified shape or inline shape falls into. The Type property for a Field object returns the type of field.

Use the Activate, Edit, Open, and DoVerb methods to automate an OLE object.

Use the Object property to return an object that represents an ActiveX control or OLE object. With this object, you can use the properties and methods of the container application or the ActiveX control.

Methods

Name
Activate
ActivateAs
ConvertTo
DoVerb
Edit
Open

Properties

Name
Application
ClassType
Creator
DisplayAsIcon
IconIndex
IconLabel
IconName
IconPath
Label
Object
Parent
PreserveFormattingOnUpdate
ProgID

See also

Word Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.