Hi i have userform with the listbox and is it possible to change the color of the value if found in listbox below it is the code of the list values.
i want
i want
VBA Code:
Next
.AddItem
.List(counter, 0) = sourceCell.Offset(0, 0).Value
.List(counter, 1) = Application.Text(sourceCell.Offset(0, 1).Value, "hh:mm")
.List(counter, 2) = sourceCell.Offset(0, 2).Value
.List(counter, 3) = sourceCell.Offset(0, 3).Value
.List(counter, 4) = sourceCell.Offset(0, 4).Value
.List(counter, 5) = sourceCell.Offset(0, 5).Value
.List(counter, 6) = sourceCell.Offset(0, 6).Value
.List(counter, 7) = sourceCell.Offset(0, 7).Value
.List(counter, 8) = sourceCell.Offset(0, 8).Value
.List(counter, 9) = sourceCell.Offset(0, 9).Value [COLOR=rgb(184, 49, 47)] 'color to be change if value is contain to Red or Blue[/COLOR]
End With
counter = counter + 1