VBA & Macro Problems

Replace the Embedded Internet Explorer Browser in Excel VBA

Ayan MasoodAyan Masood Nov 13, 2026 869 views

Question details

The user needs a modern replacement for the embedded Shell.Explorer.2 browser control in Excel VBA because it renders a blank area and no longer submits requests in 64-bit Excel 2021.

Replace the Embedded Internet Explorer Browser in Excel VBA
Product
Microsoft Excel 2021 (64-bit) VBA
Device & OS
Windows 10
Scenario
Maintaining a VBA UserForm or worksheet control that loads web content through the legacy Shell.Explorer.2 browser.
Observed behavior
The control displays a blank area and no longer submits requests.
Before you start

Before you start, confirm that your Excel 2021 installation is fully updated and that you have access to the original VBA project. Note the web page or request URL loaded by the embedded control so it can be reused in the replacement interface.

Solution 1Recommended

Replace the Shell.Explorer.2 control with an Office JavaScript add-in

Use this solution when the legacy WebBrowser control returns a blank area and you need a supported way to run web content inside Excel 2021.

The legacy Shell.Explorer.2 control relies on the retired Internet Explorer engine. In current Windows 10 and 64-bit Office environments, the control may render a blank area and fail to submit requests, so the supported replacement is an Office JavaScript add-in that runs in a task pane.

1
Open the VBA project in Excel

In Excel, press Alt+F11 to open the Visual Basic Editor and locate the UserForm that contains the Shell.Explorer.2 control.

2
Remove the legacy browser control

In the UserForm designer, select the WebBrowser control, then right-click it and choose Delete to remove it from the form.

3
Create an Office JavaScript add-in

In Visual Studio Code, use the Yeoman Office generator by running yo office and select an Excel add-in project with a task pane.

4
Configure the task pane content

Edit the task pane HTML/JavaScript files and manifest.xml so the add-in loads the same URL or web requests that were previously embedded.

5
Sideload and test in Excel

In Excel, go to Insert > My Add-ins > Upload My Add-in, select the manifest, and verify that the task pane renders and submits requests correctly.

Replace the Shell.Explorer.2 control with an Office JavaScript add-in
Supported modern replacement: The Office JavaScript add-in uses the current WebView runtime instead of the deprecated Internet Explorer engine.
Free Microsoft Office alternative

Switch to WPS Office to Avoid Legacy Excel VBA Browser Issues

WPS Office is a free, lightweight Microsoft Office alternative that opens and saves Excel workbooks, offers familiar ribbon tools, and avoids the deprecated Shell.Explorer.2 control workflow in Excel VBA.

Avoid legacy Shell.Explorer.2 browser control failures in Excel VBAOpens, edits, and saves .xls and .xlsx files with Microsoft Excel format compatibilityFree and lightweight Office suite with a familiar ribbon interfaceSeamless migration for existing Excel workbooks and everyday spreadsheet tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does Shell.Explorer.2 show a blank area in Excel 2021?

Excel 2021 on Windows 10 does not reliably host the legacy Internet Explorer-based WebBrowser control. When the Internet Explorer engine is disabled or unavailable, the control can appear blank and stop submitting requests.

Can I keep using Shell.Explorer.2 with an Internet Explorer mode workaround?

It is not recommended. Internet Explorer is out of support, and registry or compatibility workarounds may not work in 64-bit Excel. Use a supported replacement such as an Office JavaScript add-in.

What is the difference between an Office JavaScript add-in and the old VBA browser control?

An Office JavaScript add-in runs web content in a modern task pane or worksheet interface using the current WebView runtime. The old Shell.Explorer.2 control relies on Internet Explorer components that are no longer maintained.

Can WPS Office open the macro-enabled Excel workbook that uses Shell.Explorer.2?

WPS Office can open and edit .xlsm macro-enabled workbooks and provides macro support, but it does not rely on Shell.Explorer.2 for web content, so you may need to replace that specific control with a supported interface.