R
Robert
I have a userform with 60 optionbuttons/checkboxes which uses the
following simple code to input '1' on to a 60 column list when a control
or combination of controls is selected:
If OptionButton1.Value = True Then
Selection.AutoFilter Field:=1, Criteria1:="1"
End If
If OptionButton2.Value = True Then
Selection.AutoFilter Field:=2, Criteria1:="1"
End If
'etc x 60
I imagine that some form of nested loop, one for the control and one for
the autofilter field would obviate the need for a separate entry for
each control?
Grateful for any help.
following simple code to input '1' on to a 60 column list when a control
or combination of controls is selected:
If OptionButton1.Value = True Then
Selection.AutoFilter Field:=1, Criteria1:="1"
End If
If OptionButton2.Value = True Then
Selection.AutoFilter Field:=2, Criteria1:="1"
End If
'etc x 60
I imagine that some form of nested loop, one for the control and one for
the autofilter field would obviate the need for a separate entry for
each control?
Grateful for any help.