Opening a new web-page window
Hi everybody,
I got this code:
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 0&, vbNullString, "http://www.google.com", vbNullString, "C:\", 1
End Sub
and it works, but it replaces my last web-browser window, and I want to let it open in a new window...
anyone?
and while your reading this: how do you rename a file using vb?