1
我有沒有互聯網,需要能夠轉換PDF文件到Excel計算機出類拔萃,我只有Adobe Reader,請讓土坯專業是不可能的,轉換PDF文件使用Adobe Reader時
目前,我有此代碼,打開使用Excel PDF文件(或任何其他Office應用程序)的偉大工程:
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 "file\path", 115, 2 'place file path here
'Page view options:
'0: Full Page
'1: Zoom to 100%
'2: Page Width
End Sub
如何複製使用VBA文件內容到我的工作? 這幾乎所有我需要的,但一種方法來安排PDF文件中的內容到不同的列將非常感激!