How do I use the values from Okay or Cancel from a MessageBox or InputBox? Not the text, but the Okay or Cancel button.. What I want to do is this:
Any help would be greatly appreciated. X-)
Code:
Dim strComment as String
strComment = InputBox("Enter a word here")
If InputBox.vbOkay Then
{code for this option}
End If
If InputBox.vbCancel Then
{code for this option}
End If