OLEFormat.DoVerb Method

Word Developer Reference

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.

Visual Basic for Applications
  ActiveDocument.Shapes(1).OLEFormat.DoVerb

See Also