Using Excel 365.
My workbook has macros which are linked to buttons or shapes on several worksheets. The macros work if I run them from the Macros dialog, or the VBA editor, but when I press a button or shape, I get the message:
"Cannot run the macro <Filename!macroname>. The macro may not be available in this workbook or all macros may be disabled."
I tried it with the "Enable all macros" setting, but that did not help.
The strange thing is, sometimes the button do work. And on at least one occasion, when I closed and reopened it, they did.
on_click
event of the control?