Sub チェックボックスのリンク先を変更するサンプルマクロ()
Dim shapeBuf As Shape
For Each shapeBuf In ActiveSheet.Shapes
With shapeBuf
If .FormControlType = xlCheckBox Then
.ControlFormat.LinkedCell = .TopLeftCell.Address
End If
End With
Next
End Sub
リンク先のマクロは
Private Sub リンク設定()
Dim Dobj As Shape
For Each Dobj In ActiveSheet.Shapes
If Dobj.FormControlType = xlCheckBox Then
i = i + 1
ActiveSheet.Shapes(Dobj.Name).OLEFormat.Object.LinkedCell = "=A" & i
End If
Next
End Sub
となっているようですね。
一見、けっこう似ているようですが動作はけっこう違ってきますね。