Hi
I need to extract data from an excel file (using VBA) to another file. However, the data is stored in one cell with a line break to separate each item.
I need to be able to read each string within the cell so that I can extract the mobile numbers (starting with 06 or 07). For the first number in the string, I'm OK (I can use the left function) but I need to be also able to read the second number that is after the NewLine.
When I create the original data in the cell (and add the new line, I do this: Tel1 & vbNewLine & Tel2). Now I need to be able to read each one individually.
Can anyone help???
Thanks
Steph
For example:
Cell G2:
<colgroup><col></colgroup><tbody>
</tbody>
I need to extract data from an excel file (using VBA) to another file. However, the data is stored in one cell with a line break to separate each item.
I need to be able to read each string within the cell so that I can extract the mobile numbers (starting with 06 or 07). For the first number in the string, I'm OK (I can use the left function) but I need to be also able to read the second number that is after the NewLine.
When I create the original data in the cell (and add the new line, I do this: Tel1 & vbNewLine & Tel2). Now I need to be able to read each one individually.
Can anyone help???
Thanks
Steph
For example:
Cell G2:
04 79 12 09 00 06 47 86 78 99 |
<colgroup><col></colgroup><tbody>
</tbody>