MsgBox can return something based on the buttons the user clicks. If you
don't care what it is, use MsgBox "", If you do, =MsgBox("") returns it,
like:
Response = MsgBox("Click yes or no", vbYesNo)
Variable Response will now be 6 (vbYes, user clicked Yes), or 7 (vbNo, user
clicked no).
MsgBox Function
Displays a message in a dialog box, waits for the user to click a button, and
returns an Integer indicating which button the user clicked.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.