converting pdf files to excel using adobe reader vba

DarkGlobus1OO

New Member
Joined
Sep 28, 2017
Messages
11
i have a computer with no internet that needs to be able to convert pdf files to excel, all i have is adobe reader, getting adobe proffesional is impossible,
currently i have this code, which works great for opening the pdf file using excel(or any other office application):



Code:
Option Explicit


Function OpenPDFPage(PDFPath As String, PageNumber As Long, PageView As Integer)


    'Opens a pdf file, at specific page and with specific view.
    'Sendkeys method is used for simulating keyboard shortcuts.
    'It can be used with both Adobe Reader & Adobe Professional.
    
    'By Christos Samaras
    
    'This line depends on the apllication you are using.
    'For Word
    'ThisDocument.FollowHyperlink PDFPath, NewWindow:=True
    'For Power Point
    'ActivePresentation.FollowHyperlink PDFPath, NewWindow:=True
    'For Excel
    ThisWorkbook.FollowHyperlink PDFPath, NewWindow:=True
    SendKeys ("^+N" & PageNumber & "~^" & PageView), True


End Function


Sub Test()


    OpenPDFPage "C:\Users\Ohad\Desktop\WWWWWWWWsdsd\pdf.pdf", 115, 2
    
    'Page view options:
    '0: Full Page
    '1: Zoom to 100%
    '2: Page Width


End Sub


how do i copy the file content to my worksheet using vba? this is pretty much all i need, but a way to arrange the content in the pdf file to diffrent collums would be much appreciated!
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
reader is just that, a reader of the image created, if you try to export from the latest version, it expects payment, need the distiller portion of the main product
 
Upvote 0
"getting adobe proffesional is impossible",
im using what i have, this is what i have, considering i can do that by a simple drag and copy paste manually makes it pretty logical there could be a way to do it by code, mybe there is,mybe its even possible with vba, dont be so narrow minded
 
Last edited:
Upvote 0
"getting adobe proffesional is impossible",
im using what i have, this is what i have, considering i can do that by a simple drag and copy paste manually makes it pretty logical there could be a way to do it by code, mybe there is,mybe its even possible with vba, dont be so narrow minded
Please post the how to when you have spent a good amount of time, figuring it out and making it work. As for your last comment, it's not appreciated .
 
Upvote 0
added this code to the existing one, works like a charm <3


SendKeys "^a", True
SendKeys "^c", True
Application.Wait (Now + TimeValue("0:00:01"))
' Paste into the sheet from cell A1
ActiveWorkbook.ActiveSheet.Paste Cells(1, 1)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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