Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default VBA: Collapse Column Groupings

I have a spreasheet with Columns H-AB, BD-BF, and BJ-CD grouped. Therefore I
have 1 level of column grouping. What is the VBA code to collapse and expand
these groupings?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VBA: Collapse Column Groupings


I think you would want to keep the 1st columns H, BD, and BJ and hid the
other columns or unhide these columns

columns("I:AB").Hide
columns("BE:BF").Hide
columns("BK:CD").Hide

columns("I:AB").UnHide
columns("BE:BF").UnHide
columns("BK:CD").UnHide


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=151848

Microsoft Office Help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Group of column can't be expanded or collapse after I set a protec ToMMie Excel Discussion (Misc queries) 1 September 11th 08 07:06 PM
Auto Filter - how to collapse "non-blank" cells in a column? marla Excel Discussion (Misc queries) 2 August 24th 08 10:03 PM
Groupings in a scattergraph Bee Charts and Charting in Excel 2 August 14th 07 03:06 AM
Outlining - collapse rows based on repeated column value Beebe Excel Discussion (Misc queries) 4 June 15th 06 12:39 AM
Groupings within PivotTables Fred Excel Worksheet Functions 1 October 18th 05 11:45 PM


All times are GMT +1. The time now is 02:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"