If you designed userform for confirm delete, you need to set property for command Delete (Default=true)Originally Posted by clif
If use Msgbox, try this code:
Sub AskAndDo() If MsgBox("Are you sure ?", vbYesNo + vbQuestion) = vbNo Then Exit Sub Else 'Code goes here End If End Sub