Hi,
I wish to be able to hide rows if the date value in column B is less than "TODAY" i.e. hide old data.
I have tried the following code but it doesn't work:
It doesn't recognise TODAY(). I would also like it to ignore blank or error entries if possible.![]()
Sub HideRowsDate() Dim cell As Range For Each cell In Range("B10:B1000") If cell.Value <= Today() Then cell.EntireRow.Hidden = True End If Next End Sub
Thank you in advance
Bookmarks