我目前在VBA中的Powerpoint Macro中使用此代码来使用URL拍摄浏览器:
ActivePresentation.FollowHyperlink Address:="http://www.participoll.com/faq/",
NewWindow:=True, AddHistory:=True
但这仅在有活动演示时才有效。我想执行或调用浏览器来打开超链接,即使没有演示文稿。上面有替代代码吗?
提前致谢!
答案 0 :(得分:1)
您还可以添加无窗口演示文稿,然后在完成后将其关闭:
Dim oPres As Presentation
Set oPres = Presentations.Add(msoFalse)
oPres.FollowHyperlink Address:="http://www.participoll.com/faq/", NewWindow:=True, AddHistory:=True
oPres.Saved = msoTrue
oPres.Close
答案 1 :(得分:0)
不使用外部dll库
Shell "cmd /C ""start http://www.participoll.com/faq/"""
也应该这样做。
问候
阿克塞尔