成功从excel运行AHK脚本

问题描述 投票:0回答:1

当尝试使用外壳的第一种方法从excel运行AHK脚本时

Sub FrmShell()
Shell ("C:\Program Files\AutoHotkey\AutoHotkey.exe  \\REG-MITEK\Mitek\Mitek\documentation\RequestForQuote\old-RFP\RFP.exe")
End Sub

我收到此错误

enter image description here

[当我使用FollowHyperlink运行它时,它有效,但无法摆脱可怕的超链接警告。

Sub FromHyperLink()
Dim s As String    
s = "\\REG-MITEK\Mitek\Mitek\documentation\RequestForQuote\old-RFP\RFP.exe"    
ThisWorkbook.FollowHyperlink (s)
End Sub
excel vba autohotkey
1个回答
0
投票

根据评论,发布答案:

检查该语句-据我所知,您正在尝试打开另一个应用程序-语法应为“ Application_path fileToOpen_path”。

#3的可能决定(需要注册表访问:

Circumvent Hyperlink Security Warning

here

但是我都没有尝试。

© www.soinside.com 2019 - 2024. All rights reserved.