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

OLEFormat Object (Publisher)

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

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

Remarks

Not all types of shapes and fields have OLE capabilities. Use the Type property for the Shape object to determine into which category the specified shape falls.

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

Example

Use the OLEFormat property for a shape or field to return an OLEFormat object. The following example activates all OLE objects in the active publication.

Sub ActivateOLEObjects() 
 Dim shpShape As Shape 

 For Each shpShape In ActiveDocument.Pages(1).Shapes 
 If shpShape.Type = pbLinkedOLEObject Then 
 shpShape.OLEFormat.Activate 
 End If 
 Next 
End Sub

Methods

Name
Activate
DoVerb

Properties

Name
Application
Object
ObjectVerbs
Parent
ProgId
© 2018 Microsoft