LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default hide rows which add up to zero

Hi,

I use the following code to hide the rows which add up to zero. But
the sheets is getting long, over 6000 rows, and it takes long to run
the macro.

Is there a quicker way?

Cheers,

Harold
-------------------------------------
Sub hide()

a = Range("z2").Value

For b = 3 To a

If Range("z" & b).Value = 0 Then
Rows(b).EntireRow.Hidden = True
Else
Rows(b).EntireRow.Hidden = False
End If

Next b

End Sub
 
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
Rows won't hide Marilyn Excel Discussion (Misc queries) 3 March 23rd 08 11:39 AM
cut rows without cutting hide rows מיכל Excel Discussion (Misc queries) 1 June 25th 07 02:01 PM
Hide the rows shail Excel Worksheet Functions 0 September 28th 06 05:00 PM
Hide Rows - copy and paste only rows that show Access101 Excel Worksheet Functions 3 March 1st 06 12:39 AM
hide rows dummster Excel Discussion (Misc queries) 0 February 15th 06 03:31 PM


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

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"