Prompt Property

A String type property. Represents the prompt for an object from the Applies to list.

Applies to: Action object, CustomProp object, Menu object, MenuItem object

Syntax

[[Let] promptRet =] object.Prompt

[Let] object.Prompt = promptSet

The Prompt property syntax has these parts:

Part Description
object Required. An expression that returns an object in the Applies to list.
promptRet Optional. A String type variable.
promptSet Required. An expression that returns a String value.

Remarks

For the Menu and MenuItem objects the Prompt property specifies the prompt that appears when you position the pointer over the menu or the menu item.

Example

Dim s as Shape, MyAction as Action


' Assume there is a shape with ID 1 on the active page.
' Assume the shape contains at least one action
s = thisDoc.ActivePage.ShapeByID(1)
' Get the reference to an Action object Set MyAction = s.Action(1)
' Set the prompt for the action in the menu MyAction.Prompt = "Hide Shape"

 

See Also

Desc property, Name property, Title property