LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Hiding columns based on value

Please help, Ive searched for the answer, but my problem seems to be unique.
Here is the background: I have a spreadsheet with many, many columns of data
(€œE€ through €œEO€ as of today, and it keeps growing). I have 9 rows of data
(rows 3 -12), so the area Im concerned with as of today spans E3:EO12. The
cells are either blank or contain a €œX€ (just two choices).
I want to hide every column that contains an €œX€ in each of its rows (i.e.
if every cell in €œE3:E12€ contains €œX€, then hide €œE€, same for column €œF€,
€œG€, etc.). If any one of the rows in a column is blank, I need to see the
column. I just cant get the syntax right for the macro.
I thought about redoing the macro code for each column, but there has to be
a better way. And it would be a bit cumbersome as I continue to add columns.
Can someone please help? Thanks. Greg

 
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
Hiding rows or columns based on cell contents Bill H Excel Discussion (Misc queries) 3 December 16th 08 10:19 PM
Hiding columns based on row 4 criteria Pierre Excel Worksheet Functions 3 May 30th 08 08:35 PM
Hiding Columns based on value from another worksheet [email protected] Excel Programming 3 October 26th 06 08:06 AM
Hiding columns based upon a value (or vice versa) Matthew Balch[_2_] Excel Programming 1 September 29th 06 06:39 PM
Hiding columns based on user/password jmatchus Excel Worksheet Functions 0 January 17th 05 06:49 PM


All times are GMT +1. The time now is 07:00 AM.

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

About Us

"It's about Microsoft Excel"