【发布时间】:2017-07-19 20:18:38
【问题描述】:
我无法将复选框放置在单元格的右侧。
宏将按钮添加到左上角的特定单元格,但是当我想将复选框添加到同一个单元格时,它不会转到右侧,我该怎么做?显然 Set chkbx 行中的数字 50 用于设置位置。但是我的复选框只有在我将其更改为负数时才会向左移动。但它不会向右走。我该怎么做?
Set t = ActiveSheet.Range(Cells(10, NewColumn), Cells(10, NewColumn))
Set btn = ActiveSheet.Buttons.Add(t.Left, t.Top, 0, 0)
With btn
.OnAction = "Button_clicked"
.Caption = "X"
.Width = 15
.Height = 12
.Name = "Delete_button_" & x
End With
/这是我想要在右上角的复选框/
Set chkbx = ActiveSheet.CheckBoxes.Add(t.Left, t.Top, 50, 0)
With chkbx
.Name = "CheckBox_" & x
.Caption = ""
End With
【问题讨论】: