Verb Property

       

Returns or sets a value specifying an operation to perform when an object is activated using the Action property.

Note   The Verb property is included for compatibility with the Action property in earlier versions. For current functionality, use the DoVerb method.

Syntax

object.Verb [= number]

The Verb property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number A value that specifies the operation to perform.

Remarks

Each object can support its own set of verbs. 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.

Set AutoActivate to 2 (Double-Click) to automatically activate an object when it's 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.