| 'Launch
internet explorer .
'1 command button on a 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()
On Error Resume Next
Call ShellExecute(0&, vbNullString,
"H:\Program Files\Internet Explorer\IEXPLORE.EXE",
vbNullString, vbNullString, vbNormalFocus)
End Sub
Notes:
You will have to change the path
for Internet Explorer
.
1 command button on a 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()
On Error Resume Next
Call ShellExecute(0&, vbNullString,
"H:\Program Files\Internet Explorer\IEXPLORE.EXE",
vbNullString, vbNullString, vbNormalFocus)
End Sub
Notes:
You will have to change the path
for Internet Explorer
|