Trying to hide rows with no values (but contain formulas, conditional formatting) from the bottom up in a three page worksheet prior to printing. During execution, after row is found with data, exit sub.
I have tried this and while it works, it's painfully slow...
With Range("C11:E100"
Set mRange = .Find(What:="", LookIn:=xlValues)
Do While Not mRange Is Nothing
mRange.EntireRow.Hidden = True
Set mRange = .FindNext
Loop
End With
I've tried setting the:
Find(What:="" to...
Find(What:="0" but this didn't work.
Also, this hides all rows, and I only want to hide the rows below the last row containing data.
Thanks again for all your help.
I have tried this and while it works, it's painfully slow...
With Range("C11:E100"
Set mRange = .Find(What:="", LookIn:=xlValues)
Do While Not mRange Is Nothing
mRange.EntireRow.Hidden = True
Set mRange = .FindNext
Loop
End With
I've tried setting the:
Find(What:="" to...
Find(What:="0" but this didn't work.
Also, this hides all rows, and I only want to hide the rows below the last row containing data.
Thanks again for all your help.