If it the box times out, it returns -1.
quote:

Returns: The value returned by MESSAGEBOX indicates which button was selected, as shown in the following table.
Value
Meaning

-1
User did not respond to the dialog box within the specified time-out period.

1
OK button selected.

2
Cancel button selected.

3
Abort button selected.

4
Retry button selected.

5
Ignore button selected.

6
Yes button selected.

7
No button selected



_________________________
Eric