EXCEL 添加 Active X 控件中选择 按钮 如何用VB 编辑 实现 按钮“是”“否”

2025-04-06 22:17:46
推荐回答(1个)
回答1:

先设置CommandButton1.Caption属性为 “是”
Private Sub CommandButton1_Click()

If CommandButton1.Caption = "是" Then
Cells(1, 1) = "TRUE"
CommandButton1.Caption = "否"
Else
Cells(1, 1) = "FALSE"
CommandButton1.Caption = "是"
End If

End Sub