title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.Message method (Project) |
vbapj.chm2 |
|
project-server |
|
d601b101-5338-f404-e63e-6d1ce926a3d7 |
06/08/2017 |
medium |
Displays a message in a message box.
expression. Message
( _Message_
, _Type_
, _YesText_
, _NoText_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Message | Required | 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". |
Boolean
The Message method provides compatibility with the macro language used in Microsoft Project version 3. x. The MsgBox method in the VBA library should be used in new macros.
[!includeSupport and feedback]