Hey Guys,
I have some code which is seperating some clumped data by "|" pulling back some individual pieces of string. Just wondering how would I print these individual pieces of string into the same row but a different column until there is no more info?
So far I have come up with:
Thanks very much for your help
I have some code which is seperating some clumped data by "|" pulling back some individual pieces of string. Just wondering how would I print these individual pieces of string into the same row but a different column until there is no more info?
So far I have come up with:
Code:
Sub SplitDemo()
Dim txt As String
Dim x As Variant
Dim c As Variant
Dim i As Long
Dim ii As Long
' This code is seperating the clumped data
txt = Worksheets("RAW_DATA").Range("E2")
x = Split(txt, "|")
For i = 0 To UBound(x)
Debug.Print x(i)
Next i
' This is me struggling to get it printed into the workbook
For ii = 2 To UBound(c)
x(i) = Worksheets("RAW_DATA").Range.Offset(0, 5 + ii)
Next ii
End Sub
Thanks very much for your help