View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Loop criteria based on cell value and color

I don't understand your question. What does it have to do with
looping? Your syntax is wrong. Use "And" not "&".

If rng.Value = Val1 And rng.Interior.ColorIndex = 36 Then


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jim at Eagle" wrote in
message
...
If rng.Value = Val1 & Interior.ColorIndex = 36 Then

how do I get there
--
Jim at Eagle