我正在使用一个按钮来切换 Application.EnableEvents:
Sub Button1_Click()
If ActiveSheet.Shapes("Button 1").TextFrame.Characters.Text = "Disable Events" Then
ActiveSheet.Shapes("Button 1").TextFrame.Characters.Text = "Enable Events"
Application.EnableEvents = False
Else
ActiveSheet.Shapes("Button 1").TextFrame.Characters.Text = "Disable Events"
Application.EnableEvents = True
End If
End Sub
如何在不禁用的SelectionChange
情况下禁用Change
?