http://www.pixel2lif...?showtopic=8212
Shell ("explorer URL")
will simply launch the website in internet explorer but hey we dont all use that browser, personally I'm a fan of firefox so this is the correct way to launch a URL in visual basic that will open it in the users default browser and is a much better alternative in my opinion.
Input into a module.
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 Public Function OpenWebpage(strWebpage As String) ShellExecute 0&, vbNullString, strWebpage, vbNullString, _ vbNullString, vbNormalFocus End Function
Call from within a form's code window:
Call OpenWebpage("http://mywebsite.com")