Hi
VBA Noob posted the below script to hide rows if the value of a cell is zero. I would like to hide a row if the result of a formula is zero. When I use this, it's hiding all rows other than those that are blank.
Sub HideBlankRows() Dim Last As Long Dim Rng, c As Range Last = Cells(Rows.Count, "AF").End(xlUp).Row Set Rng = Range("AF9:AF" & Last) Application.ScreenUpdating = False For Each c In Rng If c.Value = "0" Then c.EntireRow.Hidden = True End If Next c Application.ScreenUpdating = True End Sub
Bookmarks