R
red6000
Hi,
I have an item of data that I want to evaluate whether it is true or false
and then process, but I'm having a problem... at the moment I have:
Private Sub CommandButton2_Click()
Dim UFno As Integer
Dim Item1 As String
Dim OBno As Integer
UFno = 21
OBno = 1
Item1 = "UserForm" & UFno & "." & "OptionButton" & OBno
If Item1 = True Then
Selection.TypeText Text:=Item1
End If
End Sub
When I run the code I get an item mismatch and it highlights the line 'If
Item1 = True Then'.
Can anyone help?
Thanks.
I have an item of data that I want to evaluate whether it is true or false
and then process, but I'm having a problem... at the moment I have:
Private Sub CommandButton2_Click()
Dim UFno As Integer
Dim Item1 As String
Dim OBno As Integer
UFno = 21
OBno = 1
Item1 = "UserForm" & UFno & "." & "OptionButton" & OBno
If Item1 = True Then
Selection.TypeText Text:=Item1
End If
End Sub
When I run the code I get an item mismatch and it highlights the line 'If
Item1 = True Then'.
Can anyone help?
Thanks.