Share via


_OLEObject.Verb Method

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Verb ( _
    Verb As XlOLEVerb _
) As Object
'Usage
Dim instance As _OLEObject
Dim Verb As XlOLEVerb
Dim returnValue As Object

returnValue = instance.Verb(Verb)
Object Verb(
    XlOLEVerb Verb
)

Parameters

  • Verb
    Type: Microsoft.Office.Interop.Excel.XlOLEVerb

    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

Type: System.Object

See Also

Reference

_OLEObject Interface

_OLEObject Members

Microsoft.Office.Interop.Excel Namespace