Hi
I have some data which I need to parse out as follows:
the data will be something like this
0001 Jo Jones
0002 Water Margin
I need to put 0001 in Column A and the rest(minus the space at the start) into Column B.
Normally I would either use Text to Columns, or if more than one instance of a " ", then user the left() and right() functions combined with the find()
ie
left(A1,find(" ",A1)-1) = 0001
right(A1,(len(A1)-find(" ",A1)-1)) = Jo Jones
I need to do the exact same thing using VBA, but VBA does not recognise the Find() function. Can anyone help me and suggest an alternative without having to write my own function.
I though there was some sort of substr (sub string) function in VBA...
thanks
Jo
I have some data which I need to parse out as follows:
the data will be something like this
0001 Jo Jones
0002 Water Margin
I need to put 0001 in Column A and the rest(minus the space at the start) into Column B.
Normally I would either use Text to Columns, or if more than one instance of a " ", then user the left() and right() functions combined with the find()
ie
left(A1,find(" ",A1)-1) = 0001
right(A1,(len(A1)-find(" ",A1)-1)) = Jo Jones
I need to do the exact same thing using VBA, but VBA does not recognise the Find() function. Can anyone help me and suggest an alternative without having to write my own function.
I though there was some sort of substr (sub string) function in VBA...
thanks
Jo