I have a worksheet that I am trying to get it to look through column B to see if it is highlighted and then select that column and its associate column A value. I have written something and it selects the last cell that meets the criteria but not all of them. Anybody know what is happening? I have provided my code below. Thanks in advance
ws.Select For Each rng In ws.Range("C2:C" & lastrow) If rng.Interior.Color = 65535 Then ws.Range("B" & rng.Row).resize(1,2).select End If Next rng
Unionto select all of them.unionis what you would use if you want to leverage your existing code