I have simple macro for hiding some rows in the spreadsheet:
Set rngStat = ThisWorkbook.Worksheets("Instructions").Range("d4:d15")
With ThisWorkbook.Worksheets("Summary")
Set rngToHide = Intersect(.Range("B:B"), .UsedRange).SpecialCells(xlCellTypeConstants)
End With
'Application.Calculation = xlCalculationManual
For Each cl In rngStat
If cl.Offset(, 1).Value = "" Then
For Each clH In rngToHide
If UCase(cl.Value) = UCase(clH.Value) Then clH.EntireRow.Hidden = True
Next clH
End If
Next cl
It works, but execution takes centuries. So, I have preceded the loop with Application.Calculation = xlCalculationManual. Now, It's fast, but doesn't hide anything. I cannot understand, how setting calculation manual prevents Excel to hide rows. Do you have any ideas how should I hide rows without recalculating the spreadsheet every time?