What Happens to Microsoft Internet Controls When Internet Explorer is Removed?
Question details
Users need to know how the removal of Internet Explorer impacts VBA macros using Microsoft Internet Controls and how to address the resulting automation failures.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Running legacy VBA web automation scripts after a system update removes Internet Explorer.
- Observed behavior
- The Microsoft Internet Controls reference is visible in the VBA editor, but creating an InternetExplorer object opens Microsoft Edge without DOM access, causing properties like Busy and ReadyState to fail.
Before modifying your VBA projects, ensure you have backed up all your macro-enabled workbooks (.xlsm) and identified which specific scripts rely on the legacy InternetExplorer object.
Migrate to a Supported Web Automation Framework
The safest and most reliable way to restore web automation functionality is to update your VBA code to use modern frameworks like Selenium or Edge WebDriver.
Because Internet Explorer has been permanently removed from modern Windows builds, the legacy Microsoft Internet Controls can no longer access the Document Object Model (DOM). Workarounds like IE Mode in Edge, using standalone IE, or copying old system files will not restore VBA functionality.
To fix this issue permanently, developers must transition their codebase to modern web drivers that support current browsers.
Open the VBA editor (Alt + F11) and search your modules for references to 'InternetExplorer.Application' or 'SHDocVw.InternetExplorer'.
Download and set up a modern automation framework on your system, such as SeleniumBasic or the Microsoft Edge WebDriver.
In the VBA editor, navigate to 'Tools' > 'References'. Uncheck 'Microsoft Internet Controls' and check the reference library for your newly installed framework (e.g., Selenium Type Library).
Replace the old DOM interactions and legacy properties like 'ReadyState' or 'Busy' with the corresponding methods provided by Selenium or Edge WebDriver.

Upgrade Your Productivity with WPS Office
If you are dealing with legacy Microsoft Office issues, consider trying WPS Office. It is a highly compatible, lightweight, and free alternative that seamlessly handles Microsoft formats while offering a smooth and modern user interface for all your spreadsheet needs.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package.
- 2. Install the Software: Run the installer and follow the on-screen instructions to complete the setup.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Excel workbooks to continue your work seamlessly.

Frequently Asked Questions
Why does Microsoft Edge open when I run my old VBA macro?
When Internet Explorer is removed from Windows, the system automatically redirects InternetExplorer objects created in VBA to Microsoft Edge. However, this redirection does not grant VBA access to Edge's Document Object Model (DOM).
Can I use Internet Explorer Mode in Edge to run my VBA scripts?
No. Enabling Internet Explorer Mode in Microsoft Edge allows you to view legacy websites, but it does not restore COM automation or DOM access for VBA projects relying on Microsoft Internet Controls.
Is it safe to copy old iexplore.exe files to restore VBA functionality?
No. Copying system files or DLLs from older Windows installations is strictly unsupported, highly insecure, and will not successfully restore VBA web automation functionality.




