PDA

View Full Version : MACROS &VBA BEGINNER



Mak
09-29-2021, 12:54 PM
Hello All,

How do I assign a macro to a button for hiding and unhiding worksheets?

Best regards,

MaK

bbyeh
09-29-2021, 10:12 PM
Just right-click the button, you will see the 'assign macro' item on the pop-up menu.

p45cal
09-30-2021, 07:42 AM
…and if it's an ActiveX button that you've added to a sheet (or userform) then right-click the button and choose View Code, which will take you straight to the button's click event handler.