> question, how can i open a url in IE from the onclick event of a button
on a
> vb form?
>
> i tried using the InternetExplorer Object:
> set ie = new internetexplorer
> ie.navigate ("url")
>
> but it didnt work.
>
> daniel
>
place the declare and the HyperJump into standard module
' function for url launcher
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
Sub HyperJump(ByVal URL As String)
Call ShellExecute(0&, vbNullString, URL, vbNullString, vbNullString,
vbNormalFocus)
End Sub
following code will open this website in the default browser.:
module1.HyperJump("http://p2p.wrox.com")
Hope this answers your request..
Sander