I have many names some of them has / char and some of them without so I need to copy the names unit the / to a new column
my data not limited more than 300 what I mean not a specific range .. sometimes more sometimes less
I try this code but not work for all the items and not so good can please give any suggestions
Dim str1 As String
Dim str2 As String
str1 = Range("B2").Value
x = 1
Do Until str2 = "/"
If x = Len(str1) + 2 Then GoTo OUT
str2 = Mid(str1, x, 1)
x = x + 1
Loop
OUT:
Range("E2").Value = Left(str1, x - 2)
End Sub
