Menu Property

A String value. Gets or sets a menu item name.

Applies to objects: Action

Syntax

[Let] RetVal = object.Menu

[Let] object.Menu = SetVal

The Menu property syntax has these parts:

Part Description
object A reference to an instance of the object.
RetVal A String value that specifies the name of a menu item.
SetVal A String value that specifies the name of a menu item.

 

Example

This example demonstrates using the Menu property.

Dim s as Shape, MyAction as Action


' Assume Shape with ID 1 exists on the active page.
' Assume the Shape contains at least one Action
s = thisDoc.ActivePage.ShapeByID(1)
' Get reference to an instance of the Action object Set MyAction = s.Action(1)
' Sets the name of the action in the menu MyAction.Menu = "Hide Shape"

 

See Also

Action Object, Shape Object, SetPropertyFormula Method, ActionsNum Method, AddAction Method, Action Method, RemoveAction Method