Hello
I use SHellExecute API, it's will open any URL with default browser, so it's will work with netscape or IE
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()
ShellExecute Handle, "open", "www.experts-exchange.com"
End Sub
Best regards
Mohammed Nasman
Main Topics
Browse All Topics





by: aelatikPosted on 2003-02-04 at 22:25:14ID: 7880610
This would be the best approach :
orer.Appli cation")
Dim ie
Set ie = CreateObject("InternetExpl
ie.Visible = True
ie.navigate ("http://www.google.com")
Set ie = Nothing
You could als do it like :
Shell "c:\program files\internet explorer\iexplore.exe http://www.google.com", vbMaximizedFocus
Happy programming :-)