Excel 为什么在注册Adobe Acrobat时explorer.exe会使用Internet explorer打开pdf文件?
为什么在Adobe Acrobat注册以打开pdf文件时,Explorer.exe使用Internet Explorer打开pdf 这是代码行:Excel 为什么在注册Adobe Acrobat时explorer.exe会使用Internet explorer打开pdf文件?,excel,vba,Excel,Vba,为什么在Adobe Acrobat注册以打开pdf文件时,Explorer.exe使用Internet Explorer打开pdf 这是代码行: Shell“Explorer.exe/n,&Chr(34)&strPathWithFileName&Chr(34),vbNormalFocus 除了专门为pdf设置应用程序外,还有其他解决方案吗 我使用Windows XP和Excel 2007。请尝试在下面的子部分使用Adobe reader打开PDF文件。您必须为Windows XP更正adobe
Shell“Explorer.exe/n,&Chr(34)&strPathWithFileName&Chr(34),vbNormalFocus
除了专门为pdf设置应用程序外,还有其他解决方案吗
我使用Windows XP和Excel 2007。请尝试在下面的子部分使用Adobe reader打开PDF文件。您必须为
Windows XP
更正adobe reader和文件路径。查看adobe reader的确切位置,然后使用该路径
Sub OpenPDF()
Dim AdobeReader As String
Dim MyFile As String
AdobeReader = "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"
MyFile = "C:\Users\Administrator\Desktop\PI_Adhesive_Sticker_SMI.pdf"
Shell AdobeReader & " " & MyFile, vbNormalFocus
End Sub
这项工作:
ActiveWorkbook.FollowHyperlink strPathWithFileName
这不是我要问的。我提出了一个解决方案,即不在代码中专门设置应用程序。Adobe Acrobat是注册为在my OS中打开pdf的应用程序,但explorer.exe忽略了这一点。其主要思想是,当这个应用程序被另一个操作系统和应用程序集使用时,无论注册了什么应用程序,都会打开pdf。