XLL+ Class Library (6.3)

CXlMacros::Alert

Displays a dialog box and message and waits for you to choose a button

static int Alert(
   LPCTSTR message_text,
   unsigned short type_num = 2,
   LPCTSTR help_ref = 0
);

Parameters

message_text

Message_text is the message displayed in the dialog box.

type_num

Type_num is a number from 1 to 3 specifying which type of dialog box to display.

help_ref

Help_ref is a reference to a custom online Help topic, in the form "filename! topic_number".

Return Value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods