VBA InternetExplorer.Application Object Hang

后端 未结 1 1640
滥情空心
滥情空心 2021-01-07 09:02

I\'m using an old Excel document with VBA that works fine with IE 11 on Windows 7, however on IE 11 on Windows 10 it does not work. IE 11 launches to the URL requested but t

相关标签:
1条回答
  • 2021-01-07 09:36

    After trying many different options I was finally able to get it to work. Per OmegaStripes recommendation, I began messing with the compatibility modes. Like many things, the simplest solution ended up being the correct one. After adding my intranet site to the compatibility view settings it worked perfect with zero code changes to the VBA.

    1. Launch IE 11
    2. Click Tools
    3. Click Compatibility View Settings
    4. Type your URL into the text area and click Add
    5. Check Display Intranet sites in Compatibility Mode
    6. Click Close

    After doing this I exited IE 11, restarted my Excel spread sheet with the VBA that was previously not functioning. Executed the VBA code, and it worked just as it did on Windows 7 with IE 11.

    Hope this helps some one else and saves them a lot of headache.

    Special thanks to OmegaStripes for sticking through this with me and helping me see the actual problem rather than over thinking it.

    0 讨论(0)
提交回复
热议问题