Hello,
May you please give me help on how to (on visual basic) click on a button that will link you to a website? Is it possible......i have been looking for a solution but haven't been able to find one,
Thank you.:)
Printable View
Hello,
May you please give me help on how to (on visual basic) click on a button that will link you to a website? Is it possible......i have been looking for a solution but haven't been able to find one,
Thank you.:)
You need to put the first code block at the very top and put the bottom one under the Private Sub Button1_Click
vb 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 Command2_Click() ShellExecute Me.hwnd, "Open", "http://www.vbforums.com", "", "", Normal End Sub
Thank you very much..........i tried it today and it worked.:)