G
Guest
I have a combo box which selects the name. The user is warned whether or not
he wants to change the name. If he selects yes then he can move on. If he
selects no then the name doesn't change.
I need help on finishing the last part of the code, if the user selects no
then the name doesn't change.
Dim intResponse As Integer
'display a Yes/No message box to the user
intResponse = MsgBox("Are you sure you want to change Preparer's Name?",
vbYesNo, "Change?")
'determine how the user responded and act accordingly
If intResponse = vbYes Then
MsgBox "Change confirmed."
ElseIf intResponse = vbNo Then
MsgBox "Change cancelled."
End If
End Sub
he wants to change the name. If he selects yes then he can move on. If he
selects no then the name doesn't change.
I need help on finishing the last part of the code, if the user selects no
then the name doesn't change.
Dim intResponse As Integer
'display a Yes/No message box to the user
intResponse = MsgBox("Are you sure you want to change Preparer's Name?",
vbYesNo, "Change?")
'determine how the user responded and act accordingly
If intResponse = vbYes Then
MsgBox "Change confirmed."
ElseIf intResponse = vbNo Then
MsgBox "Change cancelled."
End If
End Sub