hi,
I have DB with a form contain 4 Text Boxes the data from the Text Boxes populate the web page controls. Which Works great i'm not the greatest coder surprised myself it worked lol. Now the problem i have it always opens a new internet explorer session every time i run the code. i know its this line is the cause for it to open a new session.
my question is if i already have IE session open already and its on the website how to set focus to the current session instead of opening a new session. any help really much appreciated and will speed my day job up dramatically.
thanks in advance
shane
Full Code for your view ('Not great but works"
I have DB with a form contain 4 Text Boxes the data from the Text Boxes populate the web page controls. Which Works great i'm not the greatest coder surprised myself it worked lol. Now the problem i have it always opens a new internet explorer session every time i run the code. i know its this line is the cause for it to open a new session.
Code:
'Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "www.MYWEBSITE.com"
my question is if i already have IE session open already and its on the website how to set focus to the current session instead of opening a new session. any help really much appreciated and will speed my day job up dramatically.
thanks in advance
shane
Full Code for your view ('Not great but works"
Code:
Dim IE As InternetExplorer
Set IE = New InternetExplorer
'Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "www.MYWEBSITE.com"
Do While (IE.Busy)
Call Pause(2)
Loop
IE.Document.getElementById("vin").Value = Me.testVin
Call Pause(2)
IE.Document.Forms(0).submit
Call Pause(2)
IE.Document.getElementById("manufacturer").Value = Me.trailerman
Call Pause(2)
IE.Document.Forms(0).submit
Call Pause(2)
IE.Document.getElementById("wizard_trailer_weights_gross_weight").Value = Me.grossweight
'Call Pause(2)
IE.Document.getElementById("wizard_trailer_weights_unladen_weight").Value = Me.ladenWeight
Call Pause(2)
IE.Document.Forms(0).submit
end sub