Hi there,
I am currently using the following macro
Public Sub HideRows()
Dim N
Application.ScreenUpdating = False
For N = 4 To 358
If Range("AF" & N).Value = "0" Then
Rows(N).EntireRow.Hidden = True
Else
Rows(N).EntireRow.Hidden = False
End If
Next N
Application.ScreenUpdating = True
End Sub
However this seems to slow/freeze my screen and excel is there a simplfied version of this macro that can hide rows within a data set that i do not wish to see?
Backgroung to this... I have a template that imports a data extract in its orginal form. I only want to see a specific set of data therefore i have put a if formula in Column AF4:AF258 that will give me either 1 or 0 back. 0 for when the date does not meet the criteria and thus would like to hide this row.
The issue is that this macro seems to freeze my workbook and it gets stuck on calculate cell 100% but nothing happens.
I would really appreciate some input here.
thank you in advance
I am currently using the following macro
Public Sub HideRows()
Dim N
Application.ScreenUpdating = False
For N = 4 To 358
If Range("AF" & N).Value = "0" Then
Rows(N).EntireRow.Hidden = True
Else
Rows(N).EntireRow.Hidden = False
End If
Next N
Application.ScreenUpdating = True
End Sub
However this seems to slow/freeze my screen and excel is there a simplfied version of this macro that can hide rows within a data set that i do not wish to see?
Backgroung to this... I have a template that imports a data extract in its orginal form. I only want to see a specific set of data therefore i have put a if formula in Column AF4:AF258 that will give me either 1 or 0 back. 0 for when the date does not meet the criteria and thus would like to hide this row.
The issue is that this macro seems to freeze my workbook and it gets stuck on calculate cell 100% but nothing happens.
I would really appreciate some input here.
thank you in advance