I am using a meesage box that appears if an If statement is True, I want the user to be able to continue running the code when they click the OK button. Can someone please supply the code for this
Sub messagebox()
Dim response As Variant
If "Your test" Then
response = msgbox("Your message", vbOKCancel)
If response = vbCancel Then
Exit Sub 'this will exit the code
Else
'this will allow it to continue running
End If
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.