Bewerken

Delen via


ObjectVerbs object (Publisher)

Represents the collection of OLE verbs for the specified OLE object. OLE verbs are the operations supported by an OLE object. Commonly used OLE verbs are play and edit.

Remarks

Use the OLEFormat.ObjectVerbs property to return an ObjectVerbs object.

Example

The following example displays all the available verbs for the OLE object contained in the first shape on the first page in the active publication. For this example to work, the specified shape must contain an OLE object.

Sub GetVerbs() 
 Dim intCount As Integer 
 
 With ActiveDocument.Pages(1).Shapes(1).OLEFormat 
 For intCount = 1 To .ObjectVerbs.Count 
 MsgBox .ObjectVerbs(intCount) 
 Next 
 End With 
End Sub

Methods

Properties

See also

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.