OLEObject.Verb Method
Sends a verb to the server of the OLEObject.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.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
- Verb
Type: Microsoft.Office.Interop.Excel.XlOLEVerb
One of the XlOLEVerb values that represents the verb that the server of the OLEObject should act on.
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).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.