如何将此宏分配给跨多个工作表的按钮;IE。无论按钮的名称是“按钮 1”还是“按钮 2”?
Public SelectionChange_Enabled As Boolean
Sub Button1_Click()
If ActiveSheet.Shapes("Button 1").TextFrame.Characters.Text = "Disable Events" Then
ActiveSheet.Shapes("Button 1").TextFrame.Characters.Text = "Enable Events"
SelectionChange_Enabled = False
Else
ActiveSheet.Shapes("Button 1").TextFrame.Characters.Text = "Disable Events"
SelectionChange_Enabled = True
End If
End Sub