Hello,
I have this bit of code that I'm using and they its performing really slowly and I'm not sure why or how to improve it.
All they are doing is sorting a mass load of data the ranges and N1:N1000 could actually do with either being a count or infinitely long if possible while still running quickly.
any ideas?
Thanks
Marc
I have this bit of code that I'm using and they its performing really slowly and I'm not sure why or how to improve it.
Code:
Sub Hide_complete2014()
Application.ScreenUpdating = False
Dim cell As Range
For Each cell In Range("N1:N1000")
If (cell.Value) = "Complete" Then
cell.EntireRow.Hidden = True
End If
Next
Application.ScreenUpdating = True
End Sub
All they are doing is sorting a mass load of data the ranges and N1:N1000 could actually do with either being a count or infinitely long if possible while still running quickly.
any ideas?
Thanks
Marc