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):
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!
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: