我正在导出的pdf到excel,但如何我不能创建我的vba代码中的Acrobat.AcroPDDoc对象

我的vba代码在
Dim AC_PD As Acrobat.AcroPDDoc 'access pdf file
Dim AC_Hi As Acrobat.AcroHiliteList 'set selection word count
Dim AC_PG As Acrobat.AcroPDPage 'get the particular page
Dim AC_PGTxt As Acrobat.AcroPDTextSelect 'get the text of selection area
Dim WS_PDF As Worksheet
Dim RW_Ct As Long 'row count
Dim Col_Num As Integer 'column count
Dim Li_Row As Long 'Maximum rows limit for one column
Dim Yes_Fir As Boolean 'to identify beginning of page
Li_Row = Rows.Count
Set AC_PD = New Acrobat.AcroPDDoc
Set AC_Hi = New Acrobat.AcroHiliteList在为AC_PD创建新对象时,它显示unable to create ActivX component can't object如何解决此问题。提前谢谢你
发布于 2019-02-28 23:43:47
要创建宏对象,您必须使用AcroExch。所以使用: Set AC_PD = CreateObject("AcroExch.PDDoc")。你可以在这个网站上找到更多的例子。如果您有完整的Adobe Acrobat版本(仅限Reader ),则所有功能均可正常工作
https://stackoverflow.com/questions/54925598
复制相似问题