The following table lists the return values for a message box:--

Constant  Value  Description
vbOK 1 OK button clicked
vbCancel 2 Cancel button clicked
vbAbort 3 Abort button clicked
vbRetry 4 Retry button clicked
vbIgnore 5 Ignore button clicked
vbYes 6 Yes button clicked
vbNo 7 No button clicked

Comments

Popular posts from this blog

50 Excel VBA Oral Interview Questions