+ Reply to Thread
Results 1 to 11 of 11

Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    Limerick,Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    Hi,
    I had a macro that opened a website, gave values to various objects(radio buttons,dropdown lists, textboxes etc) and then clicked a submit button.
    The macro was working fine on Windows XP pro with Internet Explorer 6. Now I have Windows 7 and Internet Explorer 9 and I get the same error message, no matter what.

    run-time error ;2147023179 (800706b5)
    Automation error
    The interface is unknown

    Here's the code I'm using:

    Please Login or Register  to view this content.
    When debugging the IE object is fine until it navigates to the URL. When I add a watch for the object named IE all it's features have values and the object type is WebBrowser2, then after the line ie.navigate "URL" it loses all it's content. All the features get a value of <Automation error> and the type is just object.
    Then when proceeding to the next line and calling on the IE object the error message comes.
    I've seen other people having the same problem, and I tried a number of the suggested solutions, like adjusting internet explorer safety measures or approach the task with VBscripting, but the problem persists.
    Please help!
    Last edited by Cutter; 10-21-2012 at 12:25 PM. Reason: Added code tags

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    Is there an actual URL or are you using the string "URL"?

  3. #3
    Registered User
    Join Date
    08-07-2012
    Location
    Limerick,Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    Actual URL, but I would rather not disclose it here.
    Please note, The exact macro was working before. It was successfully accessing the website, choosing the required options and carrying the needed actions out. The issue is probably related to Internet Explorer 9.
    Last edited by Captainplanet; 10-22-2012 at 06:11 AM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646
    Could the website itself have changed?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    08-07-2012
    Location
    Limerick,Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    It didn't. The browser opens up the site fine.
    But even if the website would have been changed, the object should still shouldn't lose the webbrowser. In case the website was different it should have a problem finding the same elements on the html document, but that comes at a later stage in the code.
    The problem here is that the internet explorer application is lost from the object that contains it the moment any website loads.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    I've not heard of any such problems with IE9 and it's pretty hard to recreate the situation without a URL and only a few lines of code.

    Have you tried it in an earlier version?

  7. #7
    Registered User
    Join Date
    08-07-2012
    Location
    Limerick,Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    Not on windows 7, only on xp professional with IE 6. It was working with that.
    Just for arguments sake, here's an actual code.

    Please Login or Register  to view this content.
    Last edited by arlu1201; 10-07-2013 at 09:13 AM.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    That code works fine for me up to this line which I think is a typo.
    Please Login or Register  to view this content.
    To fix that I change the code to this.
    Please Login or Register  to view this content.
    PS I'm using Windows 7 (64-bit) and IE9.

  9. #9
    Registered User
    Join Date
    08-07-2012
    Location
    Limerick,Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    You're right, there was a typo. I was using getelementbyID, not elementsbyID.
    Anyway. I think I figured out smg about this error message. I tried to run the code with a random website at home with my wifi toggle. It worked.
    However just an hour ago with the company internet connection it didn't. I think there's some kind of firewall or other setting at work here. If I try to run it at work, the thing crashes immediately after IE.navigate. My company is notoriously strict in controlling internet content. Anyway, that's one step closer to the solution.

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    That definitely sounds like the firewall or some other restriction is at least part of the problem.

  11. #11
    Registered User
    Join Date
    10-07-2013
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    2

    Cool Re: Windows 7 Internet Explorer 9 Error 800706b5; Interface is unknown

    Quote Originally Posted by Norie View Post
    That definitely sounds like the firewall or some other restriction is at least part of the problem.
    Here is a quick and easy solution for this issue:

    Instead of:

    set IE = createobject("internetexplorer.application")

    Use:

    Set IE = New InternetExplorerMedium

    No need to tweak the IE settings

+ 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