larryresick
New Member
- Joined
- Dec 21, 2017
- Messages
- 6
Here has got to be a better way to do this. This takes forever and gives me a run time error. I want to change the value of the cell only if it is NOT one of the four IFS. I probably want a find and replace but only if it is on condition it is not one of the four values (Player Tier, Veteran Tier, Preferred Tier, Platinum Tier).
Dim i As Integer
i = 2
Do While i <= ThisWorkbook.ActiveSheet.UsedRange.Rows.Count
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Player Tier" Then GoTo Line12
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Veteran Tier" Then GoTo Line12
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Preferred Tier" Then GoTo Line12
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Platinum Tier" Then GoTo Line12
ThisWorkbook.ActiveSheet.Cells(i, 9).Value = "Player Tier"
Line12: i = i + 1
Loop
End Sub
Thanks in advance
Dim i As Integer
i = 2
Do While i <= ThisWorkbook.ActiveSheet.UsedRange.Rows.Count
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Player Tier" Then GoTo Line12
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Veteran Tier" Then GoTo Line12
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Preferred Tier" Then GoTo Line12
If ThisWorkbook.ActiveSheet.Cells(i, 9) = "Platinum Tier" Then GoTo Line12
ThisWorkbook.ActiveSheet.Cells(i, 9).Value = "Player Tier"
Line12: i = i + 1
Loop
End Sub
Thanks in advance