Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Hiding Rows in EXCEL (Conditionally)

Darran

Sub Hide_Zeros_Rows()
'using set column
Dim RngCol As Range
Dim i As Range
Set RngCol = Range("B1", Range("B" & Rows.Count). _
End(xlUp).Address)
For Each i In RngCol
If i.Value = "0" Then _
i.EntireRow.Hidden = True
Next i
End Sub

Hides rows if value is 0 in Column B.

Gord Dibben Excel MVP XL2002

On 13 Sep 2003 18:38:55 -0700, (Darran Caputo) wrote:

Is there a way to hide rows in a worksheet based on a value in the row?

In other words:


IF A1 0 then "Hide Row"


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
Run-time error 1004 while conditionally hiding rows as a result ofworksheet protection ran58 Excel Discussion (Misc queries) 2 July 22nd 09 07:42 AM
conditionally hiding rows Derrick Excel Discussion (Misc queries) 13 June 20th 09 05:58 PM
Conditionally Hiding Rows Llobid Excel Discussion (Misc queries) 5 April 11th 06 10:56 PM
Hiding Rows Conditionally Mike Hogan Excel Discussion (Misc queries) 2 December 9th 04 10:05 PM
Conditionally Hiding Rows Erick Excel Programming 0 July 29th 03 05:36 PM


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