OLEObject.Verb method (Excel)

Sends a verb to the server of the specified OLE object.

Syntax

expression.Verb (Verb)

expression A variable that represents an OLEObject object.

Parameters

Name Required/Optional Data type Description
Verb Optional XlOLEVerb The verb that the server of the OLE object should act on. If this argument is omitted, the default verb is sent.

The available verbs are determined by the object's source application. Typical verbs for an OLE object are Open and Primary (represented by the XlOLEVerb constants xlOpen and xlPrimary).

Return value

Variant

Example

This example sends the default verb to the server for OLE object one on Sheet1.

Worksheets("Sheet1").OLEObjects(1).Verb

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.