首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法在VBA中创建Acrobat.AcroPDDoc对象

无法在VBA中创建Acrobat.AcroPDDoc对象
EN

Stack Overflow用户
提问于 2019-02-28 20:19:29
回答 1查看 4.7K关注 0票数 1

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

我的vba代码在

代码语言:javascript
运行
复制
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如何解决此问题。提前谢谢你

EN

回答 1

Stack Overflow用户

发布于 2019-02-28 23:43:47

要创建宏对象,您必须使用AcroExch。所以使用: Set AC_PD = CreateObject("AcroExch.PDDoc")。你可以在这个网站上找到更多的例子。如果您有完整的Adobe Acrobat版本(仅限Reader ),则所有功能均可正常工作

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54925598

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档