Hi Jeffrey, I modified the Code in Post #2 as follows:
HTML Code:
rng.Formula = "=IF(E2<>"""",""Printed"",IF(B2<>"""",""Print"",""""))"
For Each c In rng
If c.Value = "Printed" Then ws.Rows(c.Row).EntireRow.Hidden = True
If c.Value = "" Then ws.Rows(c.Row).EntireRow.Hidden = True
Next c
I would like the Code to hide rows if the value in the range is either "Printed" or blank.
Another please. The range is F2:F26 but the formula when run ends until F2626 not F26.
Thank you.