+ Reply to Thread
Results 1 to 5 of 5

Using internet explorer with Excel and VBA, page not autorefreshing when opened with VBA

  1. #1
    Registered User
    Join Date
    06-27-2010
    Location
    edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    4

    Using internet explorer with Excel and VBA, page not autorefreshing when opened with VBA

    I am trying to scrape some data from a page that auto refreshes, or at least auto updates the data to the web page, but for some reason in an instance of IE 9 that has been opened from code in excel, the page is never updated. If I click refresh on IE the page is updated, but then does nothing again. The site will block my IP if I click refresh too often, and I am wanting to check the data every second or two.

    I am confused because if I open IE normally, and navigate to the page, the page auto updates fine

    Here is the code I am using to open the instance of IE. There are other pages linked to on that page that have constantly updating odds, and these are the ones that dont auto refresh.

    Please Login or Register  to view this content.
    Any ideas as to what is happening? I have enabled javascript, and added the website to the trusted zone in IE.

    thanks

  2. #2
    Registered User
    Join Date
    06-27-2010
    Location
    edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using internet explorer with Excel and VBA, page not autorefreshing when opened with V

    I am guessing that this is an unknown problem, but bump anyway
    thanks

  3. #3
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Using internet explorer with Excel and VBA, page not autorefreshing when opened with V

    doesn't it update at all or are you too quick ?
    Sometimes the data isn't there when your readystate=READYSTATE_COMPLETE, so it's better to wait an additional 500ms-1s before reading.

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Using internet explorer with Excel and VBA, page not autorefreshing when opened with V

    I would need more to go on to fully understand your problem, perhaps the data fetch procedure.

    Please Login or Register  to view this content.
    Last edited by berlan; 01-03-2014 at 08:15 PM.

  5. #5
    Registered User
    Join Date
    06-27-2010
    Location
    edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using internet explorer with Excel and VBA, page not autorefreshing when opened with V

    hi, thanks for the replies

    berlan, I dont have any data fetch yet, I was just checking the page to make sure that it was updating properly, and found that it wasnt. It seemed wierd, because when I open an IE window manually and navigate to the page, the prices are updated fine. So what is it about a window opened by excel code that would stop the prices from updating?


    My plan was to open the page in IE, and then retrieve the ie.document every second or so, and check the data for new odds. But IE when opened by excel never updates the prices.

    bsalv, when the page opens, the initial data is there, but then it doesnt update, so in another window I can see that the odds have changed, but in the IE window opened by excel, the original data is still there

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. search web page for phrase ,without opening Internet explorer or any IE object
    By safala in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2013, 04:28 AM
  2. Replies: 3
    Last Post: 07-09-2010, 02:54 PM
  3. Pulling data from Internet Explorer in newly opened window
    By Excel_Geek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2008, 08:06 PM
  4. spreadsheet with macro does not work in Excel 2000 opened in Internet Explorer
    By jt54 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2006, 04:14 PM
  5. MAKING EXCEL AS HOME PAGE IN INTERNET EXPLORER
    By Jagz in forum Excel General
    Replies: 4
    Last Post: 01-02-2005, 11:06 AM

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