A filtered range can show several names, but a form control checkbox still affects the cell to which it is linked. When multiple checkboxes share one linked cell, changing one checkbox changes the same underlying value for every visible row. This affects Excel 2021 workbooks that use checkboxes to mark people as present or not present.
The problem
This issue came up in the Stack Overflow community. A worksheet contains about 200 names, with one form control checkbox on each row. Filtering the names, such as searching for “mike,” works correctly. The problem appears when one visible checkbox is selected and several filtered rows change at the same time. The likely cause is that the checkboxes are not linked to separate cells. See the original Stack Overflow question about Excel 2021 filter ranges with checkboxes.
The Move and size with cells setting controls where a checkbox moves when rows or columns change. It does not determine which cell stores the checkbox value. That job belongs to the checkbox’s LinkedCell property.
Each checkbox should have its own linked cell. For example, the checkbox on the row for Ana should write TRUE or FALSE to Ana’s row, while the checkbox on the row for Mike should write to Mike’s row. If every checkbox points to the same cell, all of them display or change the same result.
The solution
Remove the filter first, then assign each checkbox to the cell underneath it. The VBA routine below loops through the form control checkboxes on the active worksheet and sets each checkbox’s LinkedCell to the address of the cell at its top-left corner.
Sub TieCheckboxesToUnderlyingCell()
Dim cb As CheckBox
For Each cb In ActiveSheet.CheckBoxes
cb.LinkedCell = cb.TopLeftCell.Address
Next cb
End Sub
Sub starts a VBA procedure. Dim cb As CheckBox creates a variable for one form control checkbox. For Each processes every checkbox on the active sheet. cb.TopLeftCell.Address finds the worksheet cell beneath the checkbox’s upper-left corner. Assigning that address to cb.LinkedCell gives the checkbox its own storage cell.
The checkboxes must be positioned consistently. If each checkbox sits over the cell intended to store its value, the routine creates the correct links. If a checkbox is offset from its row, the code links it to the wrong cell, so check the layout before running it.
This approach uses Excel form controls, not ActiveX controls. An ActiveX textbox and its TextBox_Change event do not solve an incorrect checkbox-to-cell relationship. The filter only hides rows. It does not repair shared links.
How to apply it
Save a backup copy of the workbook before changing the controls.
Clear the filter so every name and checkbox is visible. This makes it easier to verify the layout and ensures the routine processes the full worksheet.
Confirm that each form control checkbox sits over the cell that should hold its status. A common setup places the checkbox in a column named
Present, beside the person’s name.Press
Alt+F11to open the Visual Basic Editor.Choose Insert, then Module.
Paste the
TieCheckboxesToUnderlyingCellprocedure into the module.Return to Excel and run the macro from Developer, Macros, or by pressing
F5inside the VBA editor.Test several rows before applying a filter. Select one checkbox and confirm that only its linked cell changes.
Apply the filter to the names column. Search for a value such as
mike, then select one visible checkbox.Check the linked cells. Only the selected row should change to
TRUEorFALSE. The other filtered rows should keep their own values.Hide the linked-value column if the worksheet needs a cleaner appearance. Do not delete it, because each checkbox needs a separate cell to store its state.
If the result is still incorrect, right-click one checkbox, open Format Control, and inspect its cell link. Repeat this for a few rows to confirm that the links point to different cells.
A structured table can make the worksheet easier to manage. Keep the name and presence fields in columns, use one row per person, and keep the checkbox status in a dedicated column. Filtering then changes which rows are visible, while each row retains its own independent status.
For a larger operation, a plain status column may be more reliable than dozens of floating controls. Users can select Present or Not present from a drop-down list, and formulas or automation can work directly with the stored text. Checkboxes are convenient for small attendance lists, but they add objects that must remain aligned with the worksheet.
Implementation angle
This fix creates a clean data layer for attendance, customer visits, stock checks, or delivery confirmations. An automation partner could use the linked status cells as the source for a Make or n8n workflow, then send only rows marked TRUE to a CRM, database, or daily report. For a growing process, the same table can move into Zoho Creator, with Excel retained for exports and analysis.
Book an AI implementation engagement with Creator Scripts at creatorscripts.com to make this checkbox workflow reliable and ready for automation.
Frequently asked questions
Why do multiple Excel checkboxes change when I select one?
They may share the same linked cell. Each form control checkbox needs its own linked cell so it can store its own TRUE or FALSE value.
How do I link each checkbox to its own row in Excel?
Assign each checkbox’s LinkedCell to the cell beneath its top-left corner. A VBA macro can do this for every form control checkbox on the active worksheet, provided the controls are positioned over the intended cells.
Will filtering rows affect checkbox links in Excel?
Filtering hides rows but does not change a checkbox’s linked cell. Clear the filter before checking that each checkbox is aligned with its intended cell and linked separately.