Verb Property

See Also42JJYB2

Applies To

OLE control2HQDVVU.

Description

Specifies an operation to perform when an OLE object is activated (Action = 7).

Usage

[form.]ole.Verb [ = verbnumber ]

Remarks

Each object can support its own set of verbsZHILMX.  For example, many objects support the verbs "edit" and "play."  Use the ObjectVerbs and ObjectVerbsCount properties to access the list of verbs supported by an object.  Set Verb = 1 to specify the first verb in the list, set Verb = 2 to specify the second verb in the list, and so on.

These standard verbs are supported by every object:

Value            Action

 

0                   The default action for the object.

1       Activates the object for editing.  If the application that created the object supports in-place editing, the object is activated within the OLE control.

2       Opens the object in a separate application window.  If the application that created the object supports in-place editing, the object is activated in its own window.

3       For embedded objects, this verb hides the application that created the object.

 

Note   These verbs may not be listed in the ObjectVerbs property array.

 

Set AutoActivate = 2 (Double-Click) to automatically activate an object when it is double-clicked by the user.

Set AutoVerbMenu = True to display a pop-up menu containing the object's verbs when the user clicks the object with the right mouse button.

Data Type

IntegerDOKXHY


See Also

Help:

Action Property04T78S3

AutoActivate Property1OHYKEP

AutoVerbMenu PropertyZQ3UT5

ObjectVerbs Property4JYBHV

ObjectVerbsCount PropertyKJ051S

OleType Property12K24M2

OleTypeAllowed Property633XBW1

 

Programmer's Guide:

Chapter 22, "Object Linking and Embedding (OLE)"