ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide and show a group of worksheets (https://www.excelbanter.com/excel-programming/357343-hide-show-group-worksheets.html)

dreamkeeper

Hide and show a group of worksheets
 
HI VB gurus!
Is there a way to write a macro to hide and show (with one control
button) that will hide and then show a group of worksheets.

i.e. I have a report that links markets to sub-regions and regions up
to national total.

I want to be able to hide all the markets and sub-markets with one
button.
Thanks for your help!
Tina


Rob

Hide and show a group of worksheets
 
sheets(array("sheet 1","sheet 2","Sheet 3")).visible=false

"dreamkeeper" wrote:

HI VB gurus!
Is there a way to write a macro to hide and show (with one control
button) that will hide and then show a group of worksheets.

i.e. I have a report that links markets to sub-regions and regions up
to national total.

I want to be able to hide all the markets and sub-markets with one
button.
Thanks for your help!
Tina



dreamkeeper

Hide and show a group of worksheets
 
Thanks!


dreamkeeper

Hide and show a group of worksheets
 
Thanks!



All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com