Someone please, for the love of God, tell me what my code is missing so I can move on. I keep getting the "NEXT WITHOUT FOR error, and it won't run my macro. I know this has to be a simple fix, but I've been up since 5am... my brain is too fried to look up anymore answers.
Thanks Excel Giants
Thanks Excel Giants
Code:
Sub Step2()
Dim mycell As Range
For Each mycell In Range("E2", Range("E" & Rows.Count).End(xlUp))
If Len(mycell) = 14 Then
mycell.Offset(, 16).Value = Right(mycell.Value, 8)
ElseIf Len(mycell) = 21 Then
mycell.Offset(, 16).Value = "UPS"
ElseIf Len(mycell) = 22 Then
mycell.Offset(, 16).Value = "UPS"
ElseIf (mycell) <= 7 Then
mycell.Offset(, 16).Value = "Research"
ElseIf Len(mycell) = 9 Then
mycell.Offset(, 16).Value = "Unknown"
ElseIf Len(mycell) >= 23 Then
mycell.Offset(, 16).Value = "Research"
Else
mycell.Offset(, 16).Value = ""
Next mycell
End Sub