I wish to attach macros to buttons (i.e. shapes) on the worksheet. This is to make it easy for users.
I have two questions, one general adn one specific:
1. Is there an easy way to attach to a shape Excel's native macros, eg autofilter, or do I have to record a new macro.
2. I want to attach a Show All macro to a button but I need an error handler so that if there is no filter in place the macro does not try to run (which will lead to it crashing) but simply shows a message box to say: "Please filter before clicking this button."
Many thanks
I have two questions, one general adn one specific:
1. Is there an easy way to attach to a shape Excel's native macros, eg autofilter, or do I have to record a new macro.
2. I want to attach a Show All macro to a button but I need an error handler so that if there is no filter in place the macro does not try to run (which will lead to it crashing) but simply shows a message box to say: "Please filter before clicking this button."
Many thanks