我想用我的默认浏览器打开URL。使用默认浏览器打开浏览器/ URL
我试图使用“Call Shell("C:\Program Files (x86)\Mozilla Firefox\firefox.exe -url" & strUrl, 1)
”,但Firefox不会打开URL。相反,Firefox从我的默认页面开始。
当我使用“Call Shell(strURL,1)
”即时通讯获取“文件未找到”错误。
Private Sub openurl_Click()
Dim urlopen As String
Dim User As String
Dim pass As String
urlopen = URL.Value
User = Username.Value
'pass = Passwort.Value
pass = InputBox("Passwort eingeben")
strUrl = "https://" & User & ":" & pass & "@" & urlopen
'MsgBox strURL <- TEST OUTPUT
'Call Shell("C:\Program Files (x86)\Mozilla Firefox\firefox.exe -t" & strUrl, 1)
'Call Shell(strURL, 1)
End Sub
运行时错误16388.广东话跟随超级链接 – rel0aded0ne
这串那样你用strURL?它应该以“https://”开始,而不是“cmd”等。因此,Application.FollowHyperlink https://www.google.com“'会打开默认浏览器。作为URL您可以使用其他任何东西,包括文件名 –