Hello everyone,
I need to write a macro in VB that separates data in one cell (which may contain numbers separated by commas and dashes) into individual cells in a column. I believe the cells are formatted as text if that makes a difference. A code within a for loop would be preferable since it will have to loop through a varying number of rows.
For example: (A1) 1-3,8-10 needs to be separated into (B1) 1, (B2) 2, (B3) 3, (B4) 8, (B5) 9, (B6) 10.
Any help would be much appreciated!
I need to write a macro in VB that separates data in one cell (which may contain numbers separated by commas and dashes) into individual cells in a column. I believe the cells are formatted as text if that makes a difference. A code within a for loop would be preferable since it will have to loop through a varying number of rows.
For example: (A1) 1-3,8-10 needs to be separated into (B1) 1, (B2) 2, (B3) 3, (B4) 8, (B5) 9, (B6) 10.
Any help would be much appreciated!