Excel 2003 Macro VBA Hide / Unhide Multiple Sheets
I'd like to assign a macro button to hide / unhide a range of sheets in a workbook.
I have tried various codes from web but have not been successful. (acutally one of the codes worked if I selected 'run' from the macro menu but does not run if button is clicked).
I have tried 'recording' and assigning to button, but still, button does not function. I cannot tell if it is an poorly written macro or an issue with, for some reason, my button is not enabled (BTW, it shows enabled in properties).
For this example lets use sheets labeled: JAN, FEB, MAR, APRIL, MAY, JUNE. What would code look like if I want to hide FEB - APRIL & leave others visible. Then, unhide same list.
I don't know much about VB but can folllow the logic of the code.
Thanks,
KhD
Comment on JBeaucaire's post
You are a real star. It worked 1st time.
I am sure I will will have more question, but...
Thank you very much
Steve
Comment on JBeaucaire's post
Now I have the buttons working to hide/unhide worksheets. Next can I have the same button not only unhide but also at the same time go to a 2nd worksheet, then another button on the now open worksheet to close and return to the 1st worksheet
Cheers
Steve