OLEFormat.DoVerb method (Word)

Requests that an OLE object perform one of its available verbs—the actions an OLE object takes to activate its contents.

Syntax

expression. DoVerb( _VerbIndex_ )

expression Required. A variable that represents an 'OLEFormat' object.

Parameters

Name Required/Optional Data type Description
VerbIndex Optional Variant The verb that the OLE object should perform. If this argument is omitted, the default verb is sent. If the OLE object does not support the requested verb, an error will occur. Can be any WdOLEVerb constant.

Remarks

Each OLE object supports a set of verbs that pertain to that object.

Example

This example sends the default verb to the server for the first floating OLE object on the active document.

ActiveDocument.Shapes(1).OLEFormat.DoVerb

See also

OLEFormat Object

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.