Hello.
I am having difficulties changing this macro.
What it do:
When i double click the target field, it hides all the rows which are empty.
I would like to use it to filter out the rows that has 0 in it.
Can somebody help me out with this please?
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Row < 2 Or Target.Row > 4 Then Exit Sub
If Intersect(Target, Range("P2:CD4")) Is Nothing Then Exit Sub
Cancel = True
Application.ScreenUpdating = False
ActiveSheet.UsedRange.Columns(1).EntireRow.Hidden = False
On Error Resume Next
With Range("A1", Cells(Rows.Count, 1).End(xlUp))
.Offset(4, Target.Column - 1).Resize(.Count - 4).SpecialCells(xlCellTypeBlanks).EntireRow.Hidden = True
End With
Application.ScreenUpdating = True
End Sub
Bookmarks