here's my problem i need a code so that the text is on the adjacent cell not on the same cell, if the cell is color red the message next to it is "out of parameter", and another color is green, and the message next to it should be "ok" the messages should be on the next column(F2:F50).
Sub ParameterCheck()
Set colorcheck = Range("E2:E50")
For Each Cell In colorcheck
If Cell.Interior.ColorIndex = 3 Then
Cell.Value = "Out of Parameter"
If Cell.Interior.ColorIndex = 10 Then
Cell.Value = "Ok"
End If
End Sub
as soon as i run the macro, it displays the message on the cell itself. Help pls. Thanks in advance.
Sub ParameterCheck()
Set colorcheck = Range("E2:E50")
For Each Cell In colorcheck
If Cell.Interior.ColorIndex = 3 Then
Cell.Value = "Out of Parameter"
If Cell.Interior.ColorIndex = 10 Then
Cell.Value = "Ok"
End If
End Sub
as soon as i run the macro, it displays the message on the cell itself. Help pls. Thanks in advance.