Hi,
Here is a sub that launches all file that have program associated with them (like .htm files, when you have a browser installed).
----------------------------------------------------------
Private Declare Function FindExecutable Lib "shell32.dll" Alias "FindExecutableA" _
(ByVal lpFile As String, ByVal lpDirectory As String, ByVal lpResult As String) As Long
Public Function LaunchFile(TheFile As String)
Dim retval, Dummy As String, prog As String
Dim StrTmp As String
' Then find the application associated with it.
prog = Space(255)
retval = FindExecutable(TheFile, Dummy, prog)
' If an application is found, launch it!
If retval > 32 Then
StrTmp = Left$(prog, InStr(1, prog, ".exe"

+ 3) & " " & TheFile
LaunchFile = Shell(StrTmp, vbNormalFocus)
Else
LaunchFile = retval
End If
End Function
----------------------------------------------------------
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'