You are on page 1of 1

Sub EjemploString()

Dim Z As String
Dim x, y As Integer
Z = Sheets(1).Cells(2, 1)
x = Len(Z)
y = InStr(Z, ",")
w = Mid(Z, y + 1, x)
Z = Mid(Z, 1, y - 1)
y = InStr(w, ",")
w = Mid(w, 1, y - 1)

Sheets(1).Cells(2, 2) = Z
Sheets(1).Cells(2, 3) = w

End Sub

You might also like