Trevor3007
Well-known Member
- Joined
- Jan 26, 2017
- Messages
- 675
- Office Version
- 365
- Platform
- Windows
hi
have this code :-
which works ok...but I need to include the following:-
If UCase(Cell.Value) = "EU" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 40
If UCase(Cell.Value) = "issue" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 39
If UCase(Cell.Value) = "BIP" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 4
If UCase(Cell.Value) = "LM" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 15
I have tried to sort but cannot :{
Thank you for your help.
KR
Trevor 3007
have this code :-
Code:
Dim Changed As Range, Cell As Range
Set Changed = Intersect(Target, Range("m2:k300"))
If Not Changed Is Nothing Then
For Each Cell In Changed
If UCase(Cell.Value) = "YES" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 35
Else
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = xlNone
End If
Next Cell
End If
end sub
which works ok...but I need to include the following:-
If UCase(Cell.Value) = "EU" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 40
If UCase(Cell.Value) = "issue" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 39
If UCase(Cell.Value) = "BIP" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 4
If UCase(Cell.Value) = "LM" Then
Rows(Cell.Row).Resize(, Cell.Column).Interior.ColorIndex = 15
I have tried to sort but cannot :{
Thank you for your help.
KR
Trevor 3007