Thanks for your answer. But what I actually wanted to do is that I want to open a HTML page directly in Internet Explorer or Netscape (default browser) when I click a button in the VB form.
Private 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 Command1_Click()
Dim sLink As String
sLink = "thread222-168356
Call ShellExecute(0&, "Open", sLink, vbNullString, vbNullString, vbNormalFocus)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.