ObjectVerbFlags Property (OLEObject Object)

       

Returns the menu state for each verb in the ObjectVerbs array.

Syntax

object.ObjectVerbFlags(value)

The ObjectVerbFlags property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A numeric expression indicating the element in the array.

Return Values

The ObjectVerbFlags property returns the following values:

Constant Value Description
vbOLEFlagChecked &H0008 The menu item is checked.
vbOLEFlagDisabled &H0002 The menu item is disabled (but not dimmed).
vbOLEFlagEnabled &H0000 The menu item is enabled.
vbOLEFlagGrayed &H0001 The menu item is dimmed.
vbOLEFlagSeparator &H0800 The menu item is a separator bar.

Note   These constants are listed in the Visual Basic (VB) object library in the Object Browser.

Remarks

The first verb in the ObjectVerbs array is the default verb. The remaining verbs in this array are suitable for displaying on a menu. The ObjectVerbFlags array contains information about the menu state (such as dimmed, checked, and so on) for each verb in the ObjectVerbs array.

When displaying a menu containing an object's verbs, check the value of this property to see how the item is displayed.