Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Conditional hidden row

I would like to display rows that have a certain condition and are others
that do not have this condition to be hidden. I'm thinking of and IF
Statement.

IF column b0 OR column c0 Then
show row
else
hide row

any suggestions?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200810/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Conditional hidden row

Here is a start for you

Sub tryme()
mylast = Cells(Cells.Rows.Count, "A").End(xlUp).Row
For j = 1 To mylast
If Cells(j, 1) = "a" Or Cells(j, 2) < 20 Then
Cells(j, 1).EntireRow.Hidden = True
End If
Next j
End Sub

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"rtwiss via OfficeKB.com" <u46610@uwe wrote in message
news:8c576eb9e664f@uwe...
I would like to display rows that have a certain condition and are others
that do not have this condition to be hidden. I'm thinking of and IF
Statement.

IF column b0 OR column c0 Then
show row
else
hide row

any suggestions?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200810/1



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
2007 Worksheet, Hidden Columns, .CSV Format Saves Hidden Column Da Tammy Excel Discussion (Misc queries) 3 April 2nd 09 11:40 PM
Rows hidden by Autofilter vs hidden by changing the Hidden property LEO@KCC Excel Programming 4 September 11th 07 10:14 AM
display hidden rows using conditional formatting D Excel Worksheet Functions 0 April 4th 07 04:10 PM
Conditional Format: NOT Hidden Row, Not Locked Cell, No Data in Ce BEEJAY Excel Programming 0 March 14th 07 07:50 PM
Saving hidden data with a worksheet (preferably without using a hidden sheet) Dick Kusleika[_3_] Excel Programming 2 January 21st 04 04:39 PM


All times are GMT +1. The time now is 06:46 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"