Sub Nationality()
Dim rng As Range
Dim cell As Variant
lRow = Range("R" & Rows.Count).End(xlUp).Row
Set rng = Range("R2:R500" & lRow)
For Each cell In rng
If Cells(i, "R").Value <> "UK" Then
Cells(i, "R").Interior.ColorIndex = 3
End If
Next
I'm New to excel vba,
It seems to be simple any help thanks in advance
Dim rng As Range
Dim cell As Variant
lRow = Range("R" & Rows.Count).End(xlUp).Row
Set rng = Range("R2:R500" & lRow)
For Each cell In rng
If Cells(i, "R").Value <> "UK" Then
Cells(i, "R").Interior.ColorIndex = 3
End If
Next
I'm New to excel vba,
It seems to be simple any help thanks in advance