I don't know much about vb, trying to figure out some coding.
I managed to extract data from many pdfs into excel, couple 100 lines.
I need vb code to:
1. remove the spaces from the Report # column
2. remove the spaces from the Date column, and turn into a date recognized by excel
3. checks Units Involved column, if more than 1, then copy, insert, paste that line into a new line below.
(I used the .....'s to try to separate and line up the columns for display purposes only)
example of the starting data:
Report #....................Date..................Units Involved
2 0 1 4 0 0 1 1 5.........1 2 1 6 2 0 1 3.....0 2
2 0 1 4 0 0 1 1 8.........1 2 2 9 2 0 1 3.....0 1
2 0 1 4 0 0 1 2 0.........0 1 0 1 2 0 1 4.....0 3
2 0 1 4 0 0 1 2 2.........0 1 1 3 2 0 1 4.....0 4
2 0 1 4 0 0 1 2 4.........0 1 2 0 2 0 1 4.....0 2
how the finished data should look:
Report #..........Date..............Units Involved
201400115.......12/16/2013.....02
201400115.......12/16/2013.....02
201400118.......12/29/2013.....01
201400120.......01/01/2014.....03
201400120.......01/01/2014.....03
201400120.......01/01/2014.....03
201400122.......01/13/2014.....04
201400122.......01/13/2014.....04
201400122.......01/13/2014.....04
201400122.......01/13/2014.....04
201400124.......01/20/2014.....02
201400124.......01/20/2014.....02
thank you for any advice or suggestions!
I managed to extract data from many pdfs into excel, couple 100 lines.
I need vb code to:
1. remove the spaces from the Report # column
2. remove the spaces from the Date column, and turn into a date recognized by excel
3. checks Units Involved column, if more than 1, then copy, insert, paste that line into a new line below.
(I used the .....'s to try to separate and line up the columns for display purposes only)
example of the starting data:
Report #....................Date..................Units Involved
2 0 1 4 0 0 1 1 5.........1 2 1 6 2 0 1 3.....0 2
2 0 1 4 0 0 1 1 8.........1 2 2 9 2 0 1 3.....0 1
2 0 1 4 0 0 1 2 0.........0 1 0 1 2 0 1 4.....0 3
2 0 1 4 0 0 1 2 2.........0 1 1 3 2 0 1 4.....0 4
2 0 1 4 0 0 1 2 4.........0 1 2 0 2 0 1 4.....0 2
how the finished data should look:
Report #..........Date..............Units Involved
201400115.......12/16/2013.....02
201400115.......12/16/2013.....02
201400118.......12/29/2013.....01
201400120.......01/01/2014.....03
201400120.......01/01/2014.....03
201400120.......01/01/2014.....03
201400122.......01/13/2014.....04
201400122.......01/13/2014.....04
201400122.......01/13/2014.....04
201400122.......01/13/2014.....04
201400124.......01/20/2014.....02
201400124.......01/20/2014.....02
thank you for any advice or suggestions!