Applies To ActiveX control, Bound Object Frame control, Chart control, Unbound Object Frame control.
Description
You can use the Verb property to specify the operation to perform when an OLE object is activated, which is permitted when the control's Action property is set to acOLEActivate.
Setting
You can set the Verb property by specifying an Integer data type value indicating the position of a verb in the list of verbs returned by the ObjectVerbs property. You can set the Verb property to 1 to specify the first verb in the list, you can set it to 2 to specify the second verb in the list, and so on.
You can set the Verb property by using the control's property sheet, a macro, or Visual Basic. You can set the default for this property by using the default control style or the DefaultControl method in Visual Basic. If you don't use the ObjectVerbs property to identify a specific verb, you can set the Verb property to one of the following values to indicate the operation to perform. These values specify the standard verbs supported by all objects.Constant | Value | Description |
acOLEVerbPrimary | 0 | Performs the default operation for the object. |
acOLEVerbShow | –1 | Activates the object for editing. |
acOLEVerbOpen | –2 | Opens the object in a separate application window. |
acOLEVerbHide | –3 | For embedded objects, hides the application that was used to create the object. |
Constant | Value | Description |
acOLEVerbInPlaceUIActivate | –4 | Activates the object for editing within the control. The menus and toolbars of the OLE server become available in the OLE container. |
acOLEVerbInPlaceActivate | –5 | Activates the object within the control. The menus and toolbars of the OLE server aren't available in the OLE container. |
Remarks Each object supports its own set of verbs. For example, many objects support the verbs Edit and Play. You can use the ObjectVerbs and ObjectVerbsCount properties to find out which verbs are supported by an object.
Microsoft Access automatically uses an object's default verb if the user double-clicks an object for which the AutoActivate property is set to Double-Click.See Also Action property, AutoActivate property, ObjectVerbs property, ObjectVerbsCount property.