PC Review


Reply
Thread Tools Rate Thread

Conditionally showing hidden columns in XL 2000

 
 
Kermit Piper
Guest
Posts: n/a
 
      14th Nov 2006
Hello, I have a sheet with many hidden columns. What I wanted to know,
is if I could conditionally show these hidden columns if their column
header cell is populated with a value. In other words, on a separate
data sheet are my values. Then, using one of those values, I'm
populating a value for the column header(s). So, all the other cells
underneath that column header cell would appear as one whole column,
but only if that column header cell has a value.

Here is a sample of my source table, which is populated with MS Query:

Test Program 1 8/5/2006 123452.01
Test Program 1 8/6/2006 123452.02
Test Program 1 8/8/2006 123452.03
Test Program 1 8/7/2006 123452.04

The last column is the value I'm using to populate the Column Header on
the display table:

520467.01 520467.02 520467.03 520467.03
Empty Cell Empty Cell Empty Cell Empty Cell

So, if I have 123452.05, then that hidden column would now become
visible. I have up to 99 hidden columns, because I know it will never
go beyond that number according to our business rules.

I think what I need to do is something like create a named range
containing the partial row that contained all the cells that I wanted
to use for selection criteria, in this case my column headings.

Then it is just a case of iterating through the cells in the named
range, comparing the values, and setting .EntireColumnHidden to either
True or False accordingly. Although I'm not sure this is the correct
approach. Could someone please show me an example of how I could code
this?

Thanks,
KP

 
Reply With Quote
 
 
 
 
Kermit Piper
Guest
Posts: n/a
 
      15th Nov 2006
Thanks everyone for your overwhelming response. Thanks so much!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with conditionally unhiding columns Isis Microsoft Excel Misc 1 3rd May 2010 01:45 PM
2007 Worksheet, Hidden Columns, .CSV Format Saves Hidden Column Da Tammy Microsoft Excel Misc 3 2nd Apr 2009 11:40 PM
Selecting Columns conditionally? =?Utf-8?B?QmlucmFpZGVy?= Microsoft Access 3 28th Sep 2007 07:18 PM
Conditionally SUM Across Multiple Columns DoooWhat Microsoft Excel Misc 2 8th Aug 2007 02:52 PM
count conditionally across two columns? =?Utf-8?B?Z3Bva3k=?= Microsoft Excel Worksheet Functions 2 6th Dec 2005 04:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:03 PM.