asked on
Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.Navigate (myURL)
ASKER
ASKER
VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic, but with some important differences. VBScript is commonly used for automating administrative and other tasks in Windows operating systems (by means of the Windows Script Host) and for server-side scripting in ASP web applications. It is also used for client-side scripting in Internet Explorer, specifically in intranet web applications.
TRUSTED BY
(Use the shellexecute API function. For an url, it opens the default system's browser)
Declare Function ShellExecute _
Lib "shell32.dll" _
Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
As Long
Private Sub openurl(url as String)
ShellExecute 0, "OPEN", url, "", "", 0
End Sub
'A direct call example
ShellExecute 0, "OPEN", "http://www.google.com", "", "", 0