PDF File: Import Last Page via PDF

Pulsar3000

New Member
Joined
Apr 19, 2021
Messages
44
Office Version
  1. 365
Platform
  1. Windows
Hello All:

I have a set of PDF files in a folder with each PDF file with multiple pages/tables.

I would like to automatically select the last table/page without doing so manually for each PDF file via Power Query.

How can I do this?

Thank You!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
from memory, directionally correct but may not be 100%…
connect to the folder containing the pdfs
do a file combine
when prompted, select any table in the sample file
complete file combine. It will probably error
go back to the sample query and edit it.
delete the selection of any table made previously
get back to a list of all tables in the sample pdf
insert an index column
sort the index column descending
click on the binary for the top table (which is the last table)
edit the code so it doesn’t refer to the hard coded table name. Change it so it refers to the first table. Look for {curly braces} and replace everything inside with 0 indicating the first row
complete any transformation steps
go to the final combine query, delete any failed steps from the bottom, up
 
Upvote 0

Forum statistics

Threads
1,215,640
Messages
6,125,972
Members
449,276
Latest member
surendra75

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top