Consulting

Results 1 to 6 of 6

Thread: recover html code inside a nested iframe

  1. #1
    VBAX Newbie
    Joined
    Feb 2014
    Posts
    4
    Location

    recover html code inside a nested iframe

    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

  2. #2
    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

  3. #3
    VBAX Newbie
    Joined
    Feb 2014
    Posts
    4
    Location

    vb -> vba

    Quote Originally Posted by westconn1 View Post
    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?

  4. #4
    Moderator VBAX Guru Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    4,997
    Location
    Quote Originally Posted by adeleon View Post
    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?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  5. #5
    but I need to write inside Excel, in VBA
    that is vba code to work with an instance of internet explorer, as you appeared to be doing

  6. #6
    VBAX Newbie
    Joined
    Feb 2014
    Posts
    4
    Location
    Sorry, I assumed this forum is for Excel / VBA; I should have specified.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •