I’m trying the following function in VBA/Excel:
Sub function_name()
button.enabled=false
Call Long_Function ' duration: 10sec
button.enabled=true
End Sub
For some reason, this button disabling does not work (it stays enabled in the excel work sheet)
I tried experimenting with DoEvents and delays, but no luck there.
Any ideas?
Thanks!
The following works for me (Excel 2010)
The font color has to be set explicitely to get it grayed.