共用方式為


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

請參閱

概念

OLEObject Object Members

OLEObject Object