+ Reply to Thread
Results 1 to 4 of 4

Get source Code text from activewindow browser

  1. #1
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Get source Code text from activewindow browser

    I need to capture source code of active browser window (this could be either Firefox of IE) and read into variable, for further manipulation using excel vba.

    So i will call procedure from excel event to verify if either Firefox or IE is open (and in readystate preferably), then capture source code of that active browser active window/tab to a variable.

    I will refine this once i get the basics working.

    Any help would be much appreciated.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Get source Code text from activewindow broswer

    It would help if you posted what you have so far
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: Get source Code text from activewindow broswer

    Sorry, i dont have any code together for this as yet.

    But dont know how to loop all open windows, check if either IE or firefox, and if active window/tab of not, then if window name = "xyz" the cature the data to a variable.

    I think i have sufficient knowledge of how to transform & use the data once read/extracted from webpage.

    I will have a workbook that will have timed event to trigger this procedure and log the results.

    Your assistance is much appreciated.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Get source Code text from activewindow browser

    What good is HTML source code in VBA?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1