So I am still having a hard time, I think it might be with how I am breaking it up.. Take a look at what "fancyStuff" is doing
Code:
Sub fancystuff()
Dim WebFrm As InternetExplorer
Dim Number, Name As String
Set WebFrm = Login("http://theurlwenavigate", True)
Call SleepIE(WebFrm)
Number = DLookup("[Client number]", "tbl_21_only_temp")
Name = DLookup("[Client Name]", "tbl_21_only_temp")
WebFrm.Document.getelementbyID("name").Value = Number & " - " & Name ' enters acct# and name with " - "
PauseApp 1
WebFrm.Navigate "javascript:doSubmit(encode())" ' this one works!
PauseApp 1 'Pause for page load, JS does not display readystates so Sleep does not work here
Debug.Print WebFrm.Document.all.Item("result").innerText ' This is the text from the result box This is what I need to add to the URLCreated column of the table.
End Sub
So there is fancy stuff... I really don't know what I'm doing wrong. I am fairly new to modifying records etc etc. Any help is appreciated.