Hello all,
What I am trying to do is to take several parts of data from an excel sheet and move them to a ticketing system we use to log tickets. So far i have:
Sub Fill_Form()
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
' im using facebook as an example
.navigate URL:="http://www.facebook.com"
Do Until .readystate = 4
DoEvents
Loop
Set mytextfield1 = .document.all.Item("Email")
mytextfield1.Value = Sheets("test_vba").Range("a1").Value
Set mytextfield1 = .document.all.Item("Pass")
mytextfield1.Value = Sheets("test_vba").Range("a2").Value
End With
End Sub
So far, I have encountered several issues. First, being that I have encountered an Automation error, the object invoked has disconnected from its client
I have looked it up on the web and what I am getting is i need to add an "option explicit" however, i am very basic with code and have no clue what the code would look like after adding that. I cannot figure out the variables aspect of the option explicit
. Also i would need to expand it to allow more data, so if you can give me pointers that way too it would be helpful
What I am trying to do is to take several parts of data from an excel sheet and move them to a ticketing system we use to log tickets. So far i have:
Sub Fill_Form()
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
' im using facebook as an example
.navigate URL:="http://www.facebook.com"
Do Until .readystate = 4
DoEvents
Loop
Set mytextfield1 = .document.all.Item("Email")
mytextfield1.Value = Sheets("test_vba").Range("a1").Value
Set mytextfield1 = .document.all.Item("Pass")
mytextfield1.Value = Sheets("test_vba").Range("a2").Value
End With
End Sub
So far, I have encountered several issues. First, being that I have encountered an Automation error, the object invoked has disconnected from its client
I have looked it up on the web and what I am getting is i need to add an "option explicit" however, i am very basic with code and have no clue what the code would look like after adding that. I cannot figure out the variables aspect of the option explicit
. Also i would need to expand it to allow more data, so if you can give me pointers that way too it would be helpful