**URGENT HELP REQUIRED**
How can I get a known element from a document in frame 1 after having clicked a known link in frame 0 using WebBrowser control?
I have this:
Sub GetData(DestURL As String)
Dim WebBrowser: Set WebBrowser = CreateObject("InternetExpl
Dim wPage As HTMLDocument
Dim pRes As String
' Make browser visible for debugging
WebBrowser.Visible = True
' Navigate to page
" & DestURL)
Do While WebBrowser.busy
Set wPage = WebBrowser.document
' Click first link in frame(0)
' HOW do I grab the value of element "MYFIELD" that has
' just loaded in frame(1) after I clicked the link in frame(0) ??
MsgBox "Value: " & pRes
In viewing the visible browser, I can see that the new page is indeed loading in frame 1
after the click event fires.
And I've tried many permutations of
pRes = wPage.frames(1).All("MYFIE
but just can't seem to get it here...
The error I am getting is "Object doesn't support this property or method"
Any help would be greatly appreciated!