i have a repeating cell format i need to split into two parts, "Nr" and "Street, PLZ", format being: "Nr Street, PLZ"
im getting the "Nr" as needed but the "Street, PLZ" is a total screw up and im not quite sure what im doing wrong
im getting the "Nr" as needed but the "Street, PLZ" is a total screw up and im not quite sure what im doing wrong
VBA Code:
Sub StringTitleRelocate()
Dim vR As Range, vN As Variant, vT As Variant
For Each vR In Range("C1", Range("C" & Rows.Count).End(xlUp))
If Not IsEmpty(vR) Then
vN = (Split(vR, " ")(0))
vTi = (Split(vR, " ")(0)) '?'
vT = Mid(vR, vTi) '?'
vR.Offset(1, 3).Value = vN
vR.Offset(1, -2).Value = vT
End If
vR.ClearContents
Next vR
End Sub