PC Review


Reply
Thread Tools Rate Thread

How do i hide rows if a condition is met

 
 
tony__77
Guest
Posts: n/a
 
      7th Aug 2007
Hi There,

Hopefully a simple one for somebody out there. I want to be able to
hide 2 rows of data if a condition is met (whether it be yes/no or
true/flase) Not sure what the easiest way to do this is and would
appreciate the help.

Thank you

Tony

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      7th Aug 2007
Something like this

If Range("A1").Value = "X" Then
Columns("H:I").Hidden = True
End If

or more succinctly

Columns("H:I").Hidden = (Range("A1").Value = "X")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"tony__77" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi There,
>
> Hopefully a simple one for somebody out there. I want to be able to
> hide 2 rows of data if a condition is met (whether it be yes/no or
> true/flase) Not sure what the easiest way to do this is and would
> appreciate the help.
>
> Thank you
>
> Tony
>



 
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
Hide Rows If Condition True wilbursj Microsoft Excel Worksheet Functions 2 20th Apr 2009 08:09 PM
hide multiple rows based on condition within rows =?Utf-8?B?U2t5bWFubg==?= Microsoft Excel Programming 6 21st Oct 2007 04:01 PM
Re: hide rows where cell condition is not met Trevor Shuttleworth Microsoft Excel Worksheet Functions 0 9th Jan 2007 06:50 PM
Hide rows based on a condition =?Utf-8?B?S2ltYmVybHlI?= Microsoft Excel Programming 2 29th Mar 2006 09:03 PM
How to hide rows on condition exceluser Microsoft Excel Misc 3 28th May 2004 01:43 AM


Features
 

Advertising
 

Newsgroups
 


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