Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 774
- Office Version
- 365
- 2019
- Platform
- Windows
Hello,
My current macro does work but it seems it quits too early. Mind you the row numbers will vary to day. Any help would greatly be appreciated.
This is what I get with the current macro as seen above.
My current macro does work but it seems it quits too early. Mind you the row numbers will vary to day. Any help would greatly be appreciated.
VBA Code:
Sub Outbound_Input_Cops()
Dim i As Long
For i = 11 To ActiveSheet.Cells(Rows.count, 4).End(xlUp).Row
Select Case ActiveSheet.Cells(i, 11).Value
Case "2300"
ActiveSheet.Range("I" & i).Value = ActiveSheet.Range("I" & i).Value & "1 COP"
Case "4600"
ActiveSheet.Range("I" & i).Value = ActiveSheet.Range("I" & i).Value & "2 COPs"
Case "6900"
ActiveSheet.Range("I" & i).Value = ActiveSheet.Range("I" & i).Value & "3 COPs"
Case "9200"
ActiveSheet.Range("I" & i).Value = ActiveSheet.Range("I" & i).Value & "4 COPs"
End Select
Next i
End Sub
This is what I get with the current macro as seen above.