David Evans
Active Member
Code:
Sub SummaryHideRows()
Debug.Print "SummaryHideRows"
ThisWorkbook.Sheets("Summary").Select
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Cells.EntireRow.Hidden = False
Dim c As Range
For Each c In Range("A9:A83")
If Left(c.Value, 5) = "Acct." Then Rows(c.Row).Hidden = True
Next
Application.ScreenUpdating = True
End Sub
I use the above code and variations of it to hide unwanted columns/rows in our worksheet. Does anyone have any thoughts on how the code can be improved/speeded up! Not that i's awfully slow, but as we us this a good deal, every little bit helps ..
I was thinking of canning the loop and using an array to define the range ...