I am working on a script that converts a .txt file (without restriction) into an Excel spreadsheet. My problem arises when I need to pull out data that can be between 5-10 characters and there are several data sets on each line.
Each line can have the following number of characters in each field, and each line has five fields:
10 char 10 char 10 char 17 char 10 char 523452 D918 20120418 1FD7X2XTACEB8963820120606 523874 L9117244 20120409 3C6TDT5H0CG12130200000000 535581 G700 20120507 5GYFUD CT 00000000
I basically need to pull 10,10,10,17,10 and put them in my own cell in a row in Excel. I can pull out the cells the way I do now, but this is based on delimiting the space, and this causes a problem when the fields do not occupy the entire amount of space, and I get an Excel sheet with empty cells in it.
source share