I would like to test an Excel VBA app I made.
However the VBA code messes around with the visibility of cells and that’s a pest when editing the sheet.
Is there an option is enable and disable macro’s on the fly without having to
Close the sheet
Change the macro settings
Reopen the sheet
Close the sheet
Change the macro settings.
etc.
As far as I know, you can’t enable / disable macros from an opened workbook on the fly.
Yet, you shouldn’t have to because macros are only triggered thanks to a user click.
The only case I would see is for the Event Procedures (
Worksheet_Changeor else).You could then create procedures to activate / deactivate events and call them from buttons in your worksbook:
You can also try these tips from Chris Pearson website using global vars you would change depending on your needs:
And check if afterwards: