Hi,
For the first macro, I need to add two compenents: (1): Change all cell references to a range, (2) Once this is completed add an xldown in the For statement so the macro does not run if there is no data in column j. I imagine it would go something like "for each j in range("I11").end(xldown)
For the second macro, is this possible to consolidate?
Thanks,
C
Macro 1:
Sub IndentifyRGB()
For j = 11 To 999
If Cells(j, 9) = "" Then
Cells(j, 5) = "-"
Else
If Cells(j, 9) <> "" Then
Cells(j, 5) = Cells(j, 9).Interior.Color Mod 256 & " " & (Cells(j, 9).Interior.Color Mod 256 ^ 2) \ 256 & " " & Cells(j, 9).Interior.Color \ 256 ^ 2
End If
End If
Next j
End Sub
Macro 2:
Sub ColorRows()
For i = 9 To 87
If Range("e" & i).Value = "P" Then
Sheets("Summary2").Range("g" & i).Interior.Color = RGB(191, 191, 191)
Sheets("Summary2").Range("h" & i).Interior.Color = RGB(191, 191, 191)
Sheets("Summary2").Range("i" & i).Interior.Color = RGB(191, 191, 191)
Sheets("Summary2").Range("j" & i).Interior.Color = RGB(191, 191, 191)
End If
If Range("e" & i).Value = "L" Then
Sheets("Summary2").Range("g" & i).Interior.Color = RGB(249, 184, 119)
Sheets("Summary2").Range("h" & i).Interior.Color = RGB(249, 184, 119)
Sheets("Summary2").Range("i" & i).Interior.Color = RGB(249, 184, 119)
Sheets("Summary2").Range("j" & i).Interior.Color = RGB(249, 184, 119)
End If
If Range("e" & i).Value = "O" Or Range("e" & i).Value = "-" Then
Sheets("Summary2").Range("g" & i).Interior.Color = RGB(255, 255, 255)
Sheets("Summary2").Range("h" & i).Interior.Color = RGB(255, 255, 255)
Sheets("Summary2").Range("i" & i).Interior.Color = RGB(255, 255, 255)
Sheets("Summary2").Range("j" & i).Interior.Color = RGB(255, 255, 255)
End If
Next i
End Sub