OLEObject.Verb Method (2003 System)

Sends a verb to the server of the OLEObject.

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

Syntax

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

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

Parameters

Return Value

Type: System.Object
If the Verb parameter is omitted, the default verb is sent. The available verbs are determined by the object's source application. Typical verbs for an OLEObject are Open and Primary (represented by the xlVerbOpen and xlVerbPrimary values).

Permissions

See Also

Reference

OLEObject Class

OLEObject Members

Microsoft.Office.Tools.Excel Namespace