C
CC
With this expression the program look the first cell of 3 cell an if find
"ACT" or "DEACT" paint this 3 cells of Yelow .
If ThisWorkbook.Sheets("list").DrawingObjects("Check Box 9").Value = xlOn Then
If InStr(1, Sheets("Grid").Cells(I, L).Value, "ACT") > 0 Or _
InStr(1, Sheets("Grid").Cells(I, L).Value, "DEACT") > 0 Then
'interior color yellow For Alarms: WARN and ALT
Sheets("Grid").Cells(I, L).Interior.ColorIndex = 6
Sheets("Grid").Cells(I, L + 1).Interior.ColorIndex = 6
Sheets("Grid").Cells(I + 1, L).Interior.ColorIndex = 6
Sheets("Grid").Cells(I + 1, L + 1).Interior.ColorIndex = 6
But what I need is paint on yellow if he find a word "(CC)" in the third
cell
Well my question is . can I have a search or find instead of Value,
"ACT" ?
"ACT" or "DEACT" paint this 3 cells of Yelow .
If ThisWorkbook.Sheets("list").DrawingObjects("Check Box 9").Value = xlOn Then
If InStr(1, Sheets("Grid").Cells(I, L).Value, "ACT") > 0 Or _
InStr(1, Sheets("Grid").Cells(I, L).Value, "DEACT") > 0 Then
'interior color yellow For Alarms: WARN and ALT
Sheets("Grid").Cells(I, L).Interior.ColorIndex = 6
Sheets("Grid").Cells(I, L + 1).Interior.ColorIndex = 6
Sheets("Grid").Cells(I + 1, L).Interior.ColorIndex = 6
Sheets("Grid").Cells(I + 1, L + 1).Interior.ColorIndex = 6
But what I need is paint on yellow if he find a word "(CC)" in the third
cell
Well my question is . can I have a search or find instead of Value,
"ACT" ?