JasonEnsor
Programmer
Hiya,
I am currently trying to process some data in excel that i need to split in to multiple rows. I have the following piece of code that will loop through the data and split it at the delimeter however i want the value before the delimeter in A2 for example and the value after the delimeter in B2. This currently only gets the data before the delimeter
Any ideas, really struggling with this?
Many thanks in advance
Jason
I am currently trying to process some data in excel that i need to split in to multiple rows. I have the following piece of code that will loop through the data and split it at the delimeter however i want the value before the delimeter in A2 for example and the value after the delimeter in B2. This currently only gets the data before the delimeter
Code:
Do Until IsEmpty(ActiveCell)
X = Split(ActiveCell.Value, "-")
ActiveCell.Offset(, -1).Resize(UBound(X)).Value = Application.Transpose(X)
ActiveCell.Value = X
ActiveCell.Offset(1, 0).Select
Loop
Any ideas, really struggling with this?
Many thanks in advance
Jason