I have the following code, once I check ccb14(check box) this will pop up an input box, when I put comment and click okay I want to execute the code associated with the command button.
right now it is not giving me any error but it is not also executing command button.
right now it is not giving me any error but it is not also executing command button.
VBA Code:
Private Sub ccb14_Click()
Do
Ans = Application.InputBox("Enter Reason", "Job on Hold")
If Ans = False Then
Exit Sub
ElseIf Ans = vbNullString Then
MsgBox ("User didn't enter anything!")
Else
notestxt.Value = Ans
GoTo xx
Exit Sub
End If
Loop
xx:
Run Me.CommandButton1
End Sub