• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Hiding Rows Marco

Zach

Member
Ok I got a macro to work that hides columns based on cell color and now I'm trying to accomplish the same thing except I'm hiding rows. I'm basically trying to hide all the rows that have the cell color white (255,255,255) in column B.

Code:
     Dim cell As Range
  For Each cell In Range("B11:B122") 'Change range to suit
 If cell.Interior.Color = RGB(255, 255, 255) Then
  Rows(cell.Rows).EntireRow.Hidden = True
  End If
  Next
End Sub

But it keeps debugging and I can't figure out what is going on.
 

Attachments

  • Fred File Start File.xlsm
    256.2 KB · Views: 3
Back
Top