MESSAGE macro

Displays and removes messages in the message area of the status bar. MESSAGE is useful for displaying text that doesn't need a response, such as descriptions of commands in user-defined menus.

Syntax

MESSAGE(logical, text)

Logical    is a logical value specifying whether to display or remove a message.

Text    is the message you want to display in the status bar. If text is "" (empty text), Microsoft Excel removes any messages currently displayed in the status bar.

Remarks

 

Example

The following lines in a macro display a message warning that you must wait for a moment while the macro calls a subroutine.

MESSAGE(TRUE, "One moment please...")

Related Functions

ALERT   Displays a dialog box and a message

BEEP   Sounds a tone

Return to index