Private Sub Inputtest()
Dim intResponse As Integer
intResponse = MsgBox("Do you want to do work?", vbYesNo)
If intResponse = 1 Then
MsgBox ("Good Choice")
Else
MsgBox ("Wrong Choice. Try Again")
End If
End Sub
The code doesn't run as i expect. When i answer yes i get wrong choice, when i answer no i get wrong choice too. why? please help
Dim intResponse As Integer
intResponse = MsgBox("Do you want to do work?", vbYesNo)
If intResponse = 1 Then
MsgBox ("Good Choice")
Else
MsgBox ("Wrong Choice. Try Again")
End If
End Sub
The code doesn't run as i expect. When i answer yes i get wrong choice, when i answer no i get wrong choice too. why? please help