此代码将执行您想要的操作:
Sub linkFromGroup()
Dim g ' we put groups in this variable
Dim gc As Integer ' group count - number of elements in group
Dim r As Range ' points to cell we will link to
Set r = Range("A1") ' initially point to cell A1 - this could be anything
' we will know something is a group when we can count the objects in the group
' if we try to count objects that don't exist we will get an error.
' we will trap that with the following line:
On Error Resume Next
' turn off screen updating while macro runs - or it will flicker
Application.ScreenUpdating = False
' loop over all the "shapes" in sheet1. A group is a special kind of shape
For Each g In Sheets("Sheet1").Shapes
' set count to zero
gc = 0
' see if we get a value other than zero
gc = g.GroupItems.Count ' on error we go to the next line and gc will still be zero
If gc > 0 Then
For ii = 1 To gc
g.GroupItems.Item(ii).Select
Selection.LinkedCell = r.Address ' right now I am assuming only check boxes in groups...
Selection.Caption = "linked to " & r.Address ' not necessary - but shows which box was linked to what.
Set r = r.Offset(1, 0) ' next check box will be linked with the next cell down from r
Next ii
End If
Next g
Application.ScreenUpdating = True ' turn on normal operation again
End Sub
运行此测试表后的示例(有两个组和一个复选框):

单个复选框没有被触及 - 组是。我从未点击过 $A$8 框,因此它的值不会显示为 TRUE 或 FALSE。
您需要打开 VBA 编辑器(Alt-F11),插入一个模块,然后粘贴上面的代码。然后,您可以使用 (Alt-F8) 运行它并从显示的列表中选择宏。还有很多其他方法可以做到这一点。从您的问题来看,您可以从此处调整代码。确保您首先在电子表格的副本上执行此操作 - 直到您确定它按您希望的方式工作!