Hi guys, here is some code but I suppose there would be a better way to do it?
What I'm doing is, on button press check to see if a checkbox is checked on the userform and if so call a routine that looks in column A and hides the row.
For example, if checkbox A is checked then call routine A_hide() the Sub says something like for every A in field A hide the row.
Problem is I'm doing this for each checkbox and I have like 40 of them:
Is there a better way?
What I'm doing is, on button press check to see if a checkbox is checked on the userform and if so call a routine that looks in column A and hides the row.
For example, if checkbox A is checked then call routine A_hide() the Sub says something like for every A in field A hide the row.
Problem is I'm doing this for each checkbox and I have like 40 of them:
Code:
If ToolBox.CheckBox_IMPpgs.Value = True Then Call IMPpgs_Filter
End If
If ToolBox.CheckBox_OnPGs.Value = True Then
Call OnPGs_Filter
End If
If ToolBox.CheckBox_Simple.Value = True Then
Call Simple_Filter
End If
If ToolBox.CheckBox_Plus.Value = True Then
Call Plus_Filter
End If
If ToolBox.CheckBox_Trad.Value = True Then
Call Trad_Filter
End If
If ToolBox.CheckBox_HD.Value = True Then
Call HD_Filter
End If
If ToolBox.CheckBox_MPO.Value = True Then
Call MPO_Filter
Is there a better way?