Share via


Application.Message Method

Project Developer Reference

Displays a message in a message box.

Syntax

expression.Message(Message, Type, YesText, NoText)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Message Required String String. The message to display in the dialog box.
Type Optional Long The buttons to include in the message dialog box. Can be one of the PjMessageType constants. The default value is pjOKOnly.
YesText Optional String The text to be displayed on the Yes button. The YesText argument is ignored unless Type is pjYesNo or pjYesNoCancel. The default value is "Yes".
NoText Optional String The text to be displayed on the No button. The NoText argument is ignored unless Type is pjYesNo or pjYesNoCancel. The default value is "No".

Return Value
Boolean

Remarks

The Message method is provided for compatibility with the macro language used in Microsoft Project version 3.x.

See Also