Bass71
MIS
- Jun 21, 2001
- 79
Hello,
I'm trying to find the function that will determine if any cells in a range of 7 rows by 1 column contain ColorIndex 38.
Instead of writing;
If ActiveCell(2, 1).Selection.ColorIndex = 38 Or ActiveCell(3, 1).Selection.ColorIndex = 38 _
Or ActiveCell(4, 1).Selection.ColorIndex = 38 Or ActiveCell(5, 1).Selection.ColorIndex = 38 _
Or ActiveCell(6, 1).Selection.ColorIndex = 38 Or ActiveCell(7, 1).Selection.ColorIndex = 38 _
Or ActiveCell(8, 1).Selection.ColorIndex = 38 Then
Thank you ............RO
I'm trying to find the function that will determine if any cells in a range of 7 rows by 1 column contain ColorIndex 38.
Instead of writing;
If ActiveCell(2, 1).Selection.ColorIndex = 38 Or ActiveCell(3, 1).Selection.ColorIndex = 38 _
Or ActiveCell(4, 1).Selection.ColorIndex = 38 Or ActiveCell(5, 1).Selection.ColorIndex = 38 _
Or ActiveCell(6, 1).Selection.ColorIndex = 38 Or ActiveCell(7, 1).Selection.ColorIndex = 38 _
Or ActiveCell(8, 1).Selection.ColorIndex = 38 Then
Thank you ............RO