+ Reply to Thread
Results 1 to 4 of 4

How To Extract Table Data From a PDF / Copy/Paste to CSV

  1. #1
    Registered User
    Join Date
    03-09-2016
    Location
    Detroit
    MS-Off Ver
    365
    Posts
    10

    How To Extract Table Data From a PDF / Copy/Paste to CSV

    Hello,

    My goal is to utilize pdf table data to populate a csv file. A simple copy & paste only serves to populate 1 column with all data. Ideally, I would like the columns to remain intact when copying and pasting over.

    I can go line by line copying and transposing the desired rows into the original columns but would like to automate this process to better understand for loops in VBA.

    Utilizing the Record Macro Functionality I have come up with this:
    Please Login or Register  to view this content.
    Last edited by alansidman; 02-05-2025 at 01:51 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2508 Win 11
    Posts
    24,940

    Re: How To Extract Table Data From a PDF / Copy/Paste to CSV

    Administrative Note:

    We would very much like to help you with your query, however your post does not comply with our guidelines

    Please take a moment to review how to add code tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.

    I have added the code tags for you today. Please take a few minutes to re-read our guidelines and rules that you agreed to when you joined and comply in the future.

    Personally, I would bring the pdf into power query and then close and load PQ to a .csv file.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-09-2016
    Location
    Detroit
    MS-Off Ver
    365
    Posts
    10

    Re: How To Extract Table Data From a PDF / Copy/Paste to CSV

    Thank you for the correction and leading me to the community guidelines. Understood, I will try that route.

  4. #4
    Forum Contributor
    Join Date
    01-25-2025
    Location
    Presov, Slovakia
    MS-Off Ver
    2021
    Posts
    291

    Re: How To Extract Table Data From a PDF / Copy/Paste to CSV

    Hi argou001,
    if you want to do this using vba: send the data source (pdf) and sample target (csv) of how it should look. Just a few rows/columns.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy paste data from table to another table then delete data without losing formulas
    By dps9460 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2019, 03:14 AM
  2. Extract and copy data between two dates and paste them in another workbook
    By forquaidian in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-06-2015, 01:03 AM
  3. Extract and copy data between two dates and paste them in another workbook
    By forquaidian in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2015, 08:50 AM
  4. Replies: 3
    Last Post: 07-29-2012, 05:05 PM
  5. Extract SPECIFIC data from Excel and Paste it in a Word Table
    By smarinaj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2011, 03:15 PM
  6. Extract/copy data from a table
    By razaas in forum Excel General
    Replies: 10
    Last Post: 01-04-2010, 07:55 AM
  7. Extract data from table and paste toappropriate column
    By georgeB in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-01-2006, 05:33 PM

Tags for this Thread

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