选中要添加的区域后运行下面的代码
Sub test()
Dim x As Shape
With Selection
For r = 1 To .Rows.Count
With .Cells(r, 1)
ad = .Offset(0, 1).Address
With Sheet1.Shapes.AddFormControl(xlCheckBox, .Left, .Top, .Width, .Height).OLEFormat.Object
.LinkedCell = ad
End With
End With
Next
End With
End Sub
温馨提示:答案为网友推荐,仅供参考