How about a completely different solution that will allow you to operate on cell values, rather than looking for which checkbox is checked.
With the following macro, which you run once, you will insert checkboxes in columns E:F. Each checkbox is linked to the cell in which that checkbox is embedded. Selecting a checkbox will insert a TRUE value into the linked cell, unselecting it will insert a FALSE value. In order to make logical values not visible in the cells, a special format (
;;;) is used. If the list gets longer in the future, you can run this macro again. Previous selections will be retained.
Such a solution will allow you to operate on cell values, whether with another macro or with formulas in the worksheet.
Caution, the macro removes all graphic objects from the sheet. If, in addition to the checkboxes in columns E:F, there will be other objects, these controls should be removed differently.
Artik
Bookmarks