Hi Formum,
I am pretty new to this Macro code stuff. I have a Macro code for a command button on the worksheet(seen below) that hide rows depending on a certain condition. The code works fine, but only if you have a couple of rows, I have 10003 rows it must look through and then hide the relevant rows. Now this will take some time to go thru all these rows and then hide the relevant ones. Is the a code that wil work faster?
Thank you for the answer in advance.
![]()
Sub Hide() Sheets("Unpaid Expenses").Select Range("s3:s10003").Select For Each Cell In Selection If Cell = "x" Then Range(Cell.Address).EntireRow.Hidden = True End If Next End Sub Sub Show() Sheets("Unpaid Expenses").Select Range("s3:s10003").Select For Each Cell In Selection If Cell = "x" Then Range(Cell.Address).EntireRow.Hidden = False End If Next End Sub
Bookmarks