0
所以我一直在为我最后一个小时左右的电子表格中的旋转按钮进行编码战斗......基本上我想能够选择一个单元格并将其链接到唯一的旋转按钮,以便它可以改变细胞的价值。我的代码如下,但是当我运行它时,无论我选择旋转按钮的LinkedCell属性的单元格变为空...请帮助我全都没有想法。将旋转按钮的LinkedCell更改为当前选择?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Range(Cells(42, 2), Cells(44, 18)), Target) Is Nothing Then
Exit Sub
Spinner1.LinkedCell = Target.Address
End Sub