Question : Convert PDF into Excel spreadsheet

I currently have information that is in a PDF document that is ordered in an outline format.  The document is several hundred lines long, so I don't want to manually copy and paste information from this document into an excel file.  I would like to convert all of the information from my PDF into an excel spreadsheet in a certain format.

First of all, the PDF is arranged like so..

4.2.    Description #1
          a)    Description #2
                 1)    Description #3
                        (a)    Description #4
                        (b)    Description #5
                 2)    Description #6
          b)    Description #7
                 1)    Description #8
                        (a)    Description #9
4.3     Description #10
etc..
There is also a page number at the very bottom of the page.

Here is how I want it formatted on the Excel Spreadsheet (you can also see the attached Excel spreadsheet).  
 
Example of how I want the Excel spreadsheet to look
 

Seq_Num             Req #      Page #      Description
1                     4.2              1              Description #1
2                     4.2.a            1              Description #2
3                     4.2.a.1      1              Description #3
4                     4.2.a.1.a      1              Description #4
5                     4.2.a.1.b      1              Description #5
6                     4.2.a.2      1              Description #6
7                     4.2.b              1              Description #7
8                     4.2.b.1      1              Description #8
9                     4.2.b.1.a      1              Description #9
10                     4.3              1              Description #10

Currently, I am Copying and Pasting the information into Word 2007, and am creating macros within word to search for "4.2." Then copying all of this description into a new word document via the macro. I then search for "a)" I have not completed this macro completely yet, which is why I have not posted any code for it.  I know that I could do this but also know that this is most likely not the most efficient way to complete this process.

I am looking for someone to help me create macro code in word that will help accomplish this task or a new more efficient way of going about this.  Please let me know if you could help at all.

Thank you much!

Rob

Answer : Convert PDF into Excel spreadsheet

Hi Rob,

Kinda busy these days, so had to keep u waiting.


Yea, so, about the code u had attached b4, frankly speaking i dint even dare to try n understand the code coz im jus a beginner in VB.
As of now, what i have done is:
> Copied your file into excel (Column A)
> Removed all the cells with single value (i presumed those to be the page no. but havn't worked on that)
> For the remaining data, i (somehow) wrote a code which gives the result in Columns D and E.


Have a look at the code and the attachment.
If reqd, delete the data in Columns D and E and run the code.


Tils
Random Solutions  
 
programming4us programming4us