Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
Sub YesNOTest()
Dim answer As Integer
 
answer = MsgBox("Yes or No?", vbQuestion + vbYesNo + vbDefaultButton2, "Box Title")

If answer = vbYes Then
  MsgBox "Yes"
Else
  MsgBox "No"
End If
End Sub
  • No labels