I have the following code behind a userform
Private Sub add_button()
On Error Resume Next
If TextBox1 > TextBox9 Then
TextBox12 = "YES"
Else
TextBox12 = "No"
If TextBox8 > TextBox3 And TextBox8 < TextBox4 Then
TextBox11 = "YES"
Else
TextBox11 = "no"
If TextBox12 = "NO" Then
TextBox10 = "NO"
ElseIf TextBox11 = "NO" Then
TextBox10 = "NO"
Else
TextBox10 = "YES"
End If
End If
End If
End Sub
The above code does not work: please advice on possible errors.
option compare texton top of your module, or useucase()to wrap your string.On Error Resume NextCan you please remove this? and then tell us what doesn't work and what error are you gettng?