I have 50 checkboxes in 5 sets of ten, I was looking to implement a check all function to be able to check each set of ten if needs be, so 5 new boxes each with the ability to check all in their category. I have looked in a few places and can only seem to find check all on sheet (below) or uncheck all. Would anyone have a piece of code or an addition to the below where I can just check a certain selection of checkboxes based on their names?
TIA
VBA Code:
[LIST=1]
[*]Sub SelectAll_Click()
[*]Dim CB As CheckBox
[*]For Each CB In ActiveSheet.CheckBoxes
[*] If CB.Name <> ActiveSheet.CheckBoxes("Check Box 1").Name Then
[*] CB.Value = ActiveSheet.CheckBoxes("Check Box 1").Value
[*] End If
[*]Next CB
[*]End Sub
[/LIST]