How to copy all PDF Contents to Excel within a Browser

drmingle

Board Regular
Joined
Oct 5, 2009
Messages
229
I am attempting to pull down the contents of a particular PDF and I don't want to have to manually launch the URL, select all, copy all, open my excel file, and paste all.

Any help would be appreciated...

Below is the non-working code I have so far:

Code:
Sub Read_PDF()
'References: Adobe Acrobat 9.0 Type Library
'References: Adobe Acrobat Browser Control Type Library 1.0
'Objective: To pull All PDF contents into active Excel sheet

Dim myobj As New Acrobat.AcroApp

'PDF that I want the contents of...
myobj = "http://abespa.org/files/roster.pdf"
myobj.Show
'Believe this will help pull the contents of the PDF
myobj.GetActiveDoc

'Believe this will help paste the contents of the PDF to my active Excel sheet
ActiveWorkbook.Select
Range("A1").Select
ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _
    False
    
End Sub
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,214,542
Messages
6,120,116
Members
448,945
Latest member
Vmanchoppy

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