tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 399
Hi there,
This VBA code has been super useful in many spreadsheets but on this occasion, it is running very slow. It takes 10 minutes to complete!
The reason is that my range is usually only about 15 cells but now it needs to check 100 cells.
Is there any way to improve/speed up this code?
Thank you!
This VBA code has been super useful in many spreadsheets but on this occasion, it is running very slow. It takes 10 minutes to complete!
The reason is that my range is usually only about 15 cells but now it needs to check 100 cells.
Is there any way to improve/speed up this code?
Thank you!
VBA Code:
Sub HideRows()
Dim Cl As Range
For Each Cl In Range("D21:D120")
Cl.EntireRow.Hidden = IIf(Cl = 0, True, False)
Next Cl
End Sub