I3atnumb3rs
New Member
- Joined
- Nov 2, 2018
- Messages
- 34
Hello,
When the string "Cancelled" appears in column A I want to enter CANCELLED as a string in column G. My code doesn't seem to work and I have no idea why.
Sub ChangeCxlProgStatus()
Dim x As Long
For x = 2 To Cells(Rows.Count, "A").End(xlUp).Row
Select Case UCase(Cells(x, 1))
Case "Cancelled"
Cells(x, 7).FormulaR1C1 = "CANCELLED"
End Select
Next x
End Sub
When the string "Cancelled" appears in column A I want to enter CANCELLED as a string in column G. My code doesn't seem to work and I have no idea why.
Sub ChangeCxlProgStatus()
Dim x As Long
For x = 2 To Cells(Rows.Count, "A").End(xlUp).Row
Select Case UCase(Cells(x, 1))
Case "Cancelled"
Cells(x, 7).FormulaR1C1 = "CANCELLED"
End Select
Next x
End Sub