Hi,
I have a CSV file that contains over 12000 lines when opened with excel. It stores employee details and I need to read about 30 fields from each employee's record. Employee’s details are 56 Lines long e.g. first employee details are on line 8 to Line 64. Employee name is on line 8 column 3; employee date of birth is on line 10 column 2 etc. Employee no 2 details start on line 64 and employee number 3 details start on line 120 etc. I need to know is there any way of setting up a new worksheet in that I copy (by linking the original fields), if I set up two employee records (keeping all the employees 30 fields on one column) and then filling the series so I can read all the 200 employees records in a new CSV file that only contains 200 lines e.g. one employees record per line. This way the program can loop through all the records with little code. I tried but it didn’t work any suggestions are welcome.
Thanks.
I have a CSV file that contains over 12000 lines when opened with excel. It stores employee details and I need to read about 30 fields from each employee's record. Employee’s details are 56 Lines long e.g. first employee details are on line 8 to Line 64. Employee name is on line 8 column 3; employee date of birth is on line 10 column 2 etc. Employee no 2 details start on line 64 and employee number 3 details start on line 120 etc. I need to know is there any way of setting up a new worksheet in that I copy (by linking the original fields), if I set up two employee records (keeping all the employees 30 fields on one column) and then filling the series so I can read all the 200 employees records in a new CSV file that only contains 200 lines e.g. one employees record per line. This way the program can loop through all the records with little code. I tried but it didn’t work any suggestions are welcome.
Thanks.