Hi there,
Wonder if anyone can help me with looping the code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("I").Value = 90000 Then
If Range("G").Value >= 90000 Then Range("K").Value = "Gold"
If Range("G").Value < 90000 And Range("G").Value >= 70000 Then Range("K").Value = "Silver"
If Range("G").Value < 70000 And Range("G").Value >= 45000 Then Range("K").Value = "Bronze"
If Range("G").Value < 45000 Then Range("K").Value = "Blue"
ElseIf Range("I").Value = 120000 Then
If Range("G").Value >= 120000 Then Range("K").Value = "Gold"
If Range("G").Value < 120000 And Range("G").Value >= 90000 Then Range("K").Value = "Silver"
If Range("G").Value < 90000 And Range("G").Value >= 70000 Then Range("K").Value = "Bronze"
If Range("G").Value < 70000 Then Range("K").Value = "Blue"
End If
End Sub
I need the code to work for all the cells in G, I and K
Regards
Olivia
Wonder if anyone can help me with looping the code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("I").Value = 90000 Then
If Range("G").Value >= 90000 Then Range("K").Value = "Gold"
If Range("G").Value < 90000 And Range("G").Value >= 70000 Then Range("K").Value = "Silver"
If Range("G").Value < 70000 And Range("G").Value >= 45000 Then Range("K").Value = "Bronze"
If Range("G").Value < 45000 Then Range("K").Value = "Blue"
ElseIf Range("I").Value = 120000 Then
If Range("G").Value >= 120000 Then Range("K").Value = "Gold"
If Range("G").Value < 120000 And Range("G").Value >= 90000 Then Range("K").Value = "Silver"
If Range("G").Value < 90000 And Range("G").Value >= 70000 Then Range("K").Value = "Bronze"
If Range("G").Value < 70000 Then Range("K").Value = "Blue"
End If
End Sub
I need the code to work for all the cells in G, I and K
Regards
Olivia