Croesus
Adventurer
Would you mind explaining how you created that button? Or do you know what it is called so I can look it up in the Excel help menu and see how to create one?
Use the Forms toolbar. Click the new button icon, and place on the worksheet. You'll be prompted for a macro when the button is placed. You can right click on the button to change its properties.
I'd like to make what you have, except have it hide certain rows & columns. For example, hide rows A1-A50 along with B1-B50.
Sure, you can do pretty much anything with a macro. So long as you tie that macro to the button, it will do what you need.
Also, is it possible to have 1 button perform both the hide & reveal action rather than having 1 button for each action? Click it once to reveal, click it again to hide.
My thinking is that you'd need to add a couple IF statements to the macro. For example, if cell C1 is hidden, it runs the code to reveal, if C1 is not hidden, it runs the code to hide. The problem is that I can't find an Excel VBA command that will return whether or not a cell is hidden. I could do this on an MS Access form, so maybe someone else knows a way to find this property in Excel.