Hi,
I am new to this forum and to VB. This code is working perfectly in VBA (excel sheet):
Private Sub CommandButton1_Click()
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = False
.Navigate "http://84.105.149.240:200/?PLS1=ON"
.Navigate "http://192.168.1.200/?PLS1=ON"
End With
End Sub
I tried the same code in VB2010 in several different ways but i can't get it working.
This is my latest result:
Public Class Form1
Private Sub Button1_Click()
Dim IE As SHDocVw.InternetExplorerMedium
IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
.Navigate("http://84.105.149.240:200/?PLS1=ON")
.Navigate("http://192.168.1.200/?PLS1=ON")
End With
End Sub
End Class
What is going wrong?
I am new to this forum and to VB. This code is working perfectly in VBA (excel sheet):
Private Sub CommandButton1_Click()
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = False
.Navigate "http://84.105.149.240:200/?PLS1=ON"
.Navigate "http://192.168.1.200/?PLS1=ON"
End With
End Sub
I tried the same code in VB2010 in several different ways but i can't get it working.
This is my latest result:
Public Class Form1
Private Sub Button1_Click()
Dim IE As SHDocVw.InternetExplorerMedium
IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
.Navigate("http://84.105.149.240:200/?PLS1=ON")
.Navigate("http://192.168.1.200/?PLS1=ON")
End With
End Sub
End Class
What is going wrong?