ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hiding All Groups (https://www.excelbanter.com/excel-programming/322371-hiding-all-groups.html)

Tim Payne

Hiding All Groups
 
I have a macro that generates some reports and adds groups for drill downs.
Is there a simple way to have Macro collapse all of the groups when it's
finished? I've tried using .Hidden = true as I generate the regions, but
that only appears to collapse the top level, when you open the top level,
all of the bottom levels are still open.......

Regards,

Tim.



Tom Ogilvy

Hiding All Groups
 
Can you do it manually. If so, then turn on the macro recorder while you do
it.

Otherwise, I think you will have to loop to find your groups and do the
hiding. Again, the macro recorder should come in handy to get the code.

--
Regards,
Tom Ogilvy

"Tim Payne" wrote in message
...
I have a macro that generates some reports and adds groups for drill

downs.
Is there a simple way to have Macro collapse all of the groups when it's
finished? I've tried using .Hidden = true as I generate the regions, but
that only appears to collapse the top level, when you open the top level,
all of the bottom levels are still open.......

Regards,

Tim.





Tim Payne

Hiding All Groups
 
Hi Tom,

Thanks for the advice, I've managed to get it to loop through each level and
close by recording pressing the group buttons at the top of the grouping
columns!

:)

Tim.




All times are GMT +1. The time now is 07:38 PM.

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