当尝试使用外壳的第一种方法从excel运行AHK脚本时
Sub FrmShell()
Shell ("C:\Program Files\AutoHotkey\AutoHotkey.exe \\REG-MITEK\Mitek\Mitek\documentation\RequestForQuote\old-RFP\RFP.exe")
End Sub
我收到此错误
[当我使用FollowHyperlink运行它时,它有效,但无法摆脱可怕的超链接警告。
Sub FromHyperLink()
Dim s As String
s = "\\REG-MITEK\Mitek\Mitek\documentation\RequestForQuote\old-RFP\RFP.exe"
ThisWorkbook.FollowHyperlink (s)
End Sub
根据评论,发布答案:
检查该语句-据我所知,您正在尝试打开另一个应用程序-语法应为“ Application_path fileToOpen_path”。
#3的可能决定(需要注册表访问:
Circumvent Hyperlink Security Warning
和
但是我都没有尝试。