Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Macro - hide rows that are 0 without an auto-filter

Hello:

I would like a macro to review rows 7-435 and if Col F = zero, then hide
that row so that only rows that contain 0 show at the completion of the
macro.

I can't add an auto-filter to help acheive this because I already have an
auto-filter on a section that is located beneath row 435.

Any ideas?

thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Macro - hide rows that are 0 without an auto-filter

Sub Hide_Zeros_Rows()
Dim RngCol As Range
Dim i As Range
Set RngCol = Range("F7:F435")
For Each i In RngCol
If i.Value = 0 Then _
i.EntireRow.Hidden = True
Next i
End Sub


Gord Dibben MS Excel MVP

On Tue, 9 Feb 2010 14:23:01 -0800, Roady
wrote:

Hello:

I would like a macro to review rows 7-435 and if Col F = zero, then hide
that row so that only rows that contain 0 show at the completion of the
macro.

I can't add an auto-filter to help acheive this because I already have an
auto-filter on a section that is located beneath row 435.

Any ideas?

thank you!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Macro - hide rows that are 0 without an auto-filter

worked like a charm!! THANK YOU, Gord!!

"Gord Dibben" wrote:

Sub Hide_Zeros_Rows()
Dim RngCol As Range
Dim i As Range
Set RngCol = Range("F7:F435")
For Each i In RngCol
If i.Value = 0 Then _
i.EntireRow.Hidden = True
Next i
End Sub


Gord Dibben MS Excel MVP

On Tue, 9 Feb 2010 14:23:01 -0800, Roady
wrote:

Hello:

I would like a macro to review rows 7-435 and if Col F = zero, then hide
that row so that only rows that contain 0 show at the completion of the
macro.

I can't add an auto-filter to help acheive this because I already have an
auto-filter on a section that is located beneath row 435.

Any ideas?

thank you!


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Macro - hide rows that are 0 without an auto-filter

You're welcome.

Thanks for the feedback.


Gord

On Wed, 10 Feb 2010 07:28:06 -0800, Roady
wrote:

worked like a charm!! THANK YOU, Gord!!

"Gord Dibben" wrote:

Sub Hide_Zeros_Rows()
Dim RngCol As Range
Dim i As Range
Set RngCol = Range("F7:F435")
For Each i In RngCol
If i.Value = 0 Then _
i.EntireRow.Hidden = True
Next i
End Sub


Gord Dibben MS Excel MVP

On Tue, 9 Feb 2010 14:23:01 -0800, Roady
wrote:

Hello:

I would like a macro to review rows 7-435 and if Col F = zero, then hide
that row so that only rows that contain 0 show at the completion of the
macro.

I can't add an auto-filter to help acheive this because I already have an
auto-filter on a section that is located beneath row 435.

Any ideas?

thank you!


.


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
Hide Raws even the Auto Filter is active Saji Excel Worksheet Functions 3 January 11th 10 10:42 AM
Auto-Hide Rows Macro txtstorer Excel Worksheet Functions 1 August 20th 08 08:54 PM
Auto Number the Rows of Auto Filter Result ashish128 Excel Discussion (Misc queries) 3 April 29th 07 06:41 PM
Using Hide, Unhide, and auto filter - select all on a protected sh Pattie Excel Worksheet Functions 1 July 7th 06 04:47 PM
Help with a hide row macro (not using filter) [email protected] Excel Worksheet Functions 10 May 19th 05 01:36 PM


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