I'm working with a form that can have varying rows of data. There will come a time when I want to archive them according to a criteria ("3" in Column A). The code I'm using is below
My problem is its going really, really slow, even when working through 10 or so lines. Is there a tip that might speed things up?
Sub NewArchive()
For Each cell In ActiveSheet.Range("A17:A500")
If cell.Value = "3" Then cell.EntireRow.Hidden = True
Next
End Sub
Many thanks guys!
David
My problem is its going really, really slow, even when working through 10 or so lines. Is there a tip that might speed things up?
Sub NewArchive()
For Each cell In ActiveSheet.Range("A17:A500")
If cell.Value = "3" Then cell.EntireRow.Hidden = True
Next
End Sub
Many thanks guys!
David