Excel vba macro button not working. Hi when i try to run a macro using its buttons the buttons do not respond animate or function. Sometimes things dont work exactly as planned and that is especially true if you develop excel models containing automated sequences with vba macros. Stack mark feb 7 17 at 636 do you have code something like this in your vba editor. I do not think that adding the code will be useful.
Excel is in edit mode when you are editting any cell. I can run macros successfully from the quickaccess toolbar. You need to ensure that excel is not in edit mode. Excel macro troubleshooting example.
When excel is in edit mode most of the menu options gets grayed out. Often a box will hover above the button containing its text and when i am able to click on the box the macro runs. Even if i change worksheet names say for example from my data to data by renaming it my code will still work. For excel 2003 macros are disabled if security level is set to high.
However the buttons themselves are completely non responsive. I did not create any button codei just clicked on insert and selected the button and assigned control to it. Lets look at a live example. If you have shared a macro enabled workbook with another user and the macros subsequently stopped working its possible that they accidentally re saved it as an ordinary.
Macro enabled workbooks have the xlsm file extension while ordinary workbooks have the xlsx extension. Ok so here is a simple excel macro. The button does not work but if i run the macro manually by using the run option in the developer tab or if i press the play button in the vba window everything works perfectly. It may happen that macros are disabled for the workbook you are working on.