Verb Method

Applies To

OLEFormat object, OLEObject object.

Description

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

Syntax

expression.Verb(Verb)

expression Required. An expression that returns an OLEObject object.

Verb Optional Variant. 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).

Example

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

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