by Brandon (46 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 15th March 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Useful code for using abort retry or ignore options.
API Declarations
Dim Response As Integer
'display message box
Dim Response As Integer
Response = MsgBox("Choose one of the following", vbAbortRetryIgnore, "Options")
Select Case Response
Case vbAbort
End 'Close and cancel
Case vbRetry
Msgbox "You retried"
Case vbIgnore
MsgBox "You ignored"
End Select
End Sub