Mar 23 2024 05:56 AM
My column G has check box form control. I need to set conditional formatting for column D so that when the check box is marked checked, the column D is formatted
Mar 23 2024 06:22 AM
Set the Cell link for each check box to the cell it covers:
If you wish, you can hide the TRUE/FALSE value in the cell by setting the number format of the cells with the check boxes to the custom format ;;; (three consecutive semicolons).
You can then use the formula =$G2 in your conditional formatting rule for column D (assuming that G2 is the top cell with a check box).
Mar 23 2024 08:07 AM
Mar 23 2024 08:29 AM
Run this macro:
Sub AssignCellLinks()
Dim chk As CheckBox
For Each chk In ActiveSheet.CheckBoxes
chk.LinkedCell = chk.TopLeftCell.Address
Next chk
End Sub