Evening,
I have a VBA code that works as it should but is a little clunky to use, as in its quite slow.
The code looks in column A and if it finds "Live" it will hide all of those rows. I have the same code running to look for "Complete" and will then hide those rows.
It would be great to have a code that runs quicker if anyone can offer some help?
Below is the code I'm using
I have a VBA code that works as it should but is a little clunky to use, as in its quite slow.
The code looks in column A and if it finds "Live" it will hide all of those rows. I have the same code running to look for "Complete" and will then hide those rows.
It would be great to have a code that runs quicker if anyone can offer some help?
Below is the code I'm using
VBA Code:
Sub HideRowsLive()
Application.ScreenUpdating = False
Dim cell As Range
For Each cell In ActiveWorkbook.ActiveSheet.Columns("A").Cells
If cell.Value = "Complete" Then
cell.EntireRow.Hidden = False
End If
Next cell
For Each cell In ActiveWorkbook.ActiveSheet.Columns("A").Cells
If cell.Value = "Live" Then
cell.EntireRow.Hidden = False
End If
Next cell
For Each cell In ActiveWorkbook.ActiveSheet.Columns("A").Cells
If cell.Value = "Live" Then
cell.EntireRow.Hidden = True
End If
Next cell