I need a little VBA help. I created a custom user form with options yes, n/a, no and a commandbutton to enter. Now i wanted to add the logic, it should filter only the shown rows. It always returns error on my first if line (if checkbox1.enabled ). I already tried if checkbox1.value Is True, but it still wont work. Any ideas? Thanks!
Private Sub CommandButton1_Click()
Dim runner As Variant, row As Variant
row = 9
If CheckBox1.Enabled Is True Then
For Each runner In row
If Not runner.Hidden Then
If cell(row, 10).Value Is Empty Then
runner.Hide
End If
End If
Next runner
End If
End Sub