How?
For example, the following assignment statement runs the MsgBox function, displaying a message, and assigns the value returned by the function to the variable RetValue:
RetValue = MsgBox("Continue?", vbOKCancel)
How?
For information about the MsgBox function, click .