Right click the sheet's tab, View Code, and paste. Add more checkbox subs to suit like 1 and 2.
Private Sub CheckBox1_Click()
cCells CheckBox1
End Sub
Private Sub CheckBox2_Click()
cCells CheckBox2
End Sub
Private Sub cCells(s As msforms.CheckBox)
Dim r&, c&
With s
r = .TopLeftCell.Row
c = .TopLeftCell.Column
If r < 16 Or c <> 18 Then Exit Sub
If .Value = True Then
Range(Cells(r, "A"), Cells(r, "Q")).Interior.Color = 5287936
Else
Range(Cells(r, "A"), Cells(r, "Q")).Interior.Color = xlNone
End If
End With
End Sub
Bookmarks