Hello, I am trying to get the below code to work. It determines if cells are grayed out and adds gray to a cell of another worksheet. Currently the code stops at the first selection. What is wrong with how I have it called out <SHEETS("" 3).Select ??).Cells(i, & n>?
Thanks in advance for this!
Code:
c = 4
n = "Test_STEEL 5in"
j = 5
For i = 4 To 51
Sheets("" & n & "").Cells(i, 3).Select
If ActiveCell.Interior.ColorIndex = 15 Then
Sheets("Test Results_STEEL").Cells(j, c).Select
ActiveCell.Value = ""
ActiveCell.Interior.ColorIndex = 15
Else
End If
j = j + 1
Next i
Thanks in advance for this!