A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Build the disable mechanism into the button code. For example, for a button named buttton code like:
Private Sub buttton_Click()
If StopMe Then
Exit Sub
End If
MsgBox "Good Morning Louise"
End Sub
and in a standard module:
Public StopMe As Boolean
Sub MAIN()
StopMe = False
' do more stuff
End Sub
Sub routine()
' disable the button code
StopMe = True
End Sub
Running MAIN enables the button logic and running routine disables it.
The advantage to this approach is that the user can see the state of the button by examining the Boolean.