Skip to content

Instantly share code, notes, and snippets.

@imamuddinwp
Last active October 21, 2020 05:35
Show Gist options
  • Save imamuddinwp/4c74bf6c29d28356069465ea1e28123a to your computer and use it in GitHub Desktop.
Save imamuddinwp/4c74bf6c29d28356069465ea1e28123a to your computer and use it in GitHub Desktop.
Excel VBA Macro If Else Condition with message; powered by Imam Uddin; imamcu07
Sub Yes_Or_No()
Dim yn_Cond As Integer
yn_Cond = MsgBox("Are you ready for the next operation?" & vbNewLine & "-------------------------" & vbNewLine & " Check 'Data' column carefully !!!", vbYesNo + vbQuestion, "proudLy powered by ImAmUdDiN ")
If yn_Cond = vbYes Then
'code goes here'
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment