PDA

View Full Version : recover html code inside a nested iframe



adeleon
02-08-2014, 11:17 PM
I have nested iframes and need to recover the HTML code inside the 3rd level of nesting. Each iframe has its own id.
PageText = IE.Document.body.outerHTML seems to recover ONLY the code that is outside the iframes.
Any help would be highly appreciated.
Alvaro

westconn1
02-14-2014, 10:34 PM
you can try like

set frame3doc = ie.document.frames(1).document.frames(1).document.frames(1).document
of course any or all of the frames may not be index 1
afaik for each does not work with frames

adeleon
02-15-2014, 12:28 PM
you can try like

set frame3doc = ie.document.frames(1).document.frames(1).document.frames(1).document
of course any or all of the frames may not be index 1
afaik for each does not work with frames

Thanks for your response, but I need to write inside Excel, in VBA. do you know if there is an equivalent method?

Aussiebear
02-16-2014, 01:45 AM
Thanks for your response, but I need to write inside Excel, in VBA. do you know if there is an equivalent method?
Then why not ask for that initially?

westconn1
02-16-2014, 01:55 AM
but I need to write inside Excel, in VBAthat is vba code to work with an instance of internet explorer, as you appeared to be doing

adeleon
02-16-2014, 04:35 PM
Sorry, I assumed this forum is for Excel / VBA; I should have specified.