View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bettergains Bettergains is offline
external usenet poster
 
Posts: 33
Default Select Case for Sorting / Grouping Columns

Hello:
I have a worksheet that contains data in columns. Above the column headers
I am adding three category rows. The categories are independent of each
other--not subcats of the other two. I am placing labels in the row-cells
that assign the category value to the column. My objective is to
programmatically create views based on either of these 3 categories.
Something like this:

In this region (which is the entire worksheet), if Row 1 says X, y, z:
hide these columns, hide rows 2 & 3
If Row 2 says x, y, z: unhide all, then hide these columns, hide rows 1 & 3
Etc.

It seems this would be easy to do with a case select. I'm recording it
manually in the meantime.

This should be fun for anyone out there with the time~