+ Reply to Thread
Results 1 to 4 of 4

Convert PDF header to Excel headers

  1. #1
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Convert PDF header to Excel headers

    I received the following code from this forum:

    Please Login or Register  to view this content.
    This code has helped me tremendously. But now I need it for another PDF sheet that is formatted a little different and I cannot seem to get it to work. I have attached a sample of the info with the VBA coding. I have a workbook that has 2500 students formatted this way. I need to be able to put it in a format that I can upload to a database. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: Convert PDF hearder to Excel headers

    If the following are always the case then try the code below:

    1) Cell A1 always contains the same information (ID #, Student Name and Grade in that order)
    2) The exam results always start in row 4 (there can be any number of them but they must start in row 4).

    If the above conditions vary then you'll need to specify the possible variations so they can be programmed for.

    Please Login or Register  to view this content.

    I notice you don't extract the exam type (maths, science etc). Is that not important?

    Hope that helps.

    Dion

  3. #3
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Re: Convert PDF hearder to Excel headers

    Ok, that did what I needed, almost. It gave me three more studentID, Name and grade that I did not need. Also, yes the exam results are always in row 4. Yes, the exam information needs to be extracted. I ran this on my main page and it only took the first student. I have over 2500 student in this workbook. Each one of the students is formatted the same way the first one is. Thank you for your help.

  4. #4
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Re: Convert PDF hearder to Excel headers

    Well I have been messing with the coding and this is what I have so far:

    Please Login or Register  to view this content.
    But it is giving me the following:

    Please Login or Register  to view this content.
    As you can see it gives me three extra StudentID and Name for the same student. Then it goes to the next set of data and gives it to me exactly how it looks in the PDF. Not sure what I am doing wrong.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1