Consulting

Results 1 to 2 of 2

Thread: Automating IE7 in Vista with Excel 12

  1. #1
    VBAX Newbie
    Joined
    Oct 2006
    Posts
    2
    Location

    Automating IE7 in Vista with Excel 12

    Hi, my problem regards this piece of code:

    Dim ie as InternetExplorer
    Set ie = new InternetExplorer

    ie.visible=false
    ie.navigate "some url"

    Do While ie.readystate=4
    Loop

    This code is ok in Windows XP also with Internet Explorer 7 installed and running Office System 2007 (with Excel 12). But in Windows Vista this code gives some errors.
    The first point is about the row "ie.visible=false". This instruction is ignored, and IE7 is always visible. The second point is the object ie. I receive Automation error reading it just with the instruction "Do while ie.readystate=4". If I comment it, and use sleep to wait until IE7 has entirely downloaded the page, I get Automation error accessing ie.document.all.

    I'm running the last build of Vista (RC2 5744).

    Any suggestion?

    Thanks.

  2. #2
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Sorry, I can't help as I'm not running a single one of those, but I did want to ping in here to see the response. You're really on the bleeding edge with your platform.
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

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