logo
search
VBA & Macro Problems

How to Fix Copied Checkboxes Keeping the Same Linked Cell in Excel

Steve KSteve K Oct 12, 2026 872 views

Question details

The user needs copied form checkboxes to automatically link to their respective individual destination cells instead of all pointing to the original checkbox's linked cell.

How to Fix Excel Copied Checkboxes Keeping the Same Linked Cell
Product
Excel
Device & OS
not provided
Scenario
Creating a form or checklist that requires copying a checkbox approximately 60 times, where each checkbox must update a different corresponding cell to indicate evaluation status.
Observed behavior
When copying and pasting a checkbox, every duplicated checkbox retains the absolute cell reference of the original linked cell, requiring tedious manual editing for each instance.
Before you start

Before running any VBA macros to automate the checkboxes, ensure you save a copy of your workbook to test the script without risking your current formatting or data.

Solution 1Recommended

Use a VBA Macro to Auto-Link Checkboxes to Separate Cells

Since copying form controls does not automatically increment the linked-cell reference, using a VBA script is the fastest and most reliable way to generate multiple uniquely linked checkboxes at once.

This macro creates a new checkbox precisely sized and positioned over each cell in your current selection, and then assigns its LinkedCell property to that specific cell's address.

1
Open the VBA Editor

Press ALT + F11 on your keyboard to open the Microsoft Visual Basic for Applications window.

2
Insert a New Module

In the top menu, click 'Insert' and select 'Module' to create a blank script window.

3
Paste the Macro Code

Copy and paste the following code: Sub Test() Dim R As Range Dim CB As CheckBox For Each R In Selection Set CB = ActiveSheet.CheckBoxes.Add(R.Left, R.Top, R.Width, R.Height) CB.LinkedCell = R.Address Next R End Sub

4
Select Destination Cells and Run

Close the VBA editor and return to your worksheet. Highlight the range of cells where you want the new checkboxes to appear. Press ALT + F8, select the 'Test' macro, and click 'Run'.

Use a VBA Macro to Auto-Link Checkboxes to Separate Cells
Macro Execution Successful: The macro will instantly generate a checkbox in each selected cell, completely eliminating the need to manually link 60 separate checkboxes.
Advanced Spreadsheet Automation

Easily Manage Checkboxes and Macros in WPS Spreadsheet

WPS Spreadsheet fully supports form controls and VBA macros, allowing you to seamlessly automate repetitive tasks like linking multiple checkboxes to separate cells. It offers a familiar interface for managing your daily worksheet operations efficiently.

  1. 1. Open Your Workbook: Launch WPS Spreadsheet and open your existing file containing the form or checklist.
  2. 2. Access the Developer Tools: Navigate to the 'Developer' tab on the ribbon and click on 'Macros' or 'Visual Basic' to access the built-in VBA Editor.
  3. 3. Run the Automation Script: Paste your checkbox linking script, highlight your target cells in the worksheet, and execute the macro to automate the linked cell assignments instantly.
Fully compatible with Microsoft Excel (.xlsx, .xls) and macro-enabled workbooks (.xlsm).Built-in VBA editor to seamlessly run and customize scripts for automated data handling.Lightweight, fast-loading, and completely free alternative with a highly intuitive user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why do copied checkboxes in Excel link to the same cell?

When you copy and paste a Form Control checkbox in Excel, it duplicates the exact properties of the original object, including the absolute reference to its linked cell. Excel does not automatically increment this reference relative to the new row or column.

Can I use the fill handle (drag down) to increment checkbox linked cells?

No, dragging the fill handle to copy checkboxes will still result in all newly created checkboxes being linked to the identical original cell. You must either use a VBA macro to assign them programmatically or edit the 'Format Control' properties manually.

How do I remove all the improperly linked checkboxes at once?

Press F5 on your keyboard to open the 'Go To' dialog box, click 'Special', select 'Objects', and click OK. This action selects all checkboxes and graphic objects on the sheet, allowing you to simply press the Delete key to remove them before running a corrected macro.