Two ways of doing this. Use a Shell function:
or use the ShellExecute api function.
Code:
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
Public Const SW_SHOWNORMAL = 1
Usage
ShellExecute Me.hwnd, vbNullString, "http://www.vb-world.net", _
vbNullString, "c:\", SW_SHOWNORMAL
dimava, the code you provided will not work because it has nothing to Shell it. The Shell function is for supporting exe's only. Unless you Shell the exe along with a command line parameter, as showed in the first example I gave.