How to Fix a Script Error in an Excel Form Browser Control
Question details
Users encounter a syntax or script error when trying to run an Excel application that relies on a form browser control for two-factor authentication.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- A New Relic monitoring script or similar website script was recently added to the server portal, and the embedded Excel browser control cannot validate or execute it during the authentication process.
- Observed behavior
- The Excel form browser control fails to load properly and displays a pop-up warning stating that a "Syntax error" or script error has occurred.
Close all active instances of Microsoft Excel and ensure you have administrative privileges on your Windows computer, as you will need to modify system-wide Internet Options.
Disable Script Error Notifications in Internet Options
Use this temporary workaround to bypass the script error pop-up so you can proceed with the two-factor authentication process.
Since Excel's legacy form browser control relies on Windows Internet settings, disabling script debugging and error notifications at the system level will stop the pop-up from appearing, allowing the rest of the application to function if the script isn't critical.
Click the Windows Start menu, type "Control Panel," and open it. Navigate to "Network and Internet," then click on "Internet Options."
In the Internet Properties window, click on the "Advanced" tab located at the top right.
Scroll down to the "Browsing" section. Check the boxes next to "Disable script debugging (Internet Explorer)" and "Disable script debugging (Other)."
Uncheck the box that says "Display a notification about every script error," then click "Apply" and "OK" to save your changes.

Clear Temporary Internet Files
Clearing the local cache forces the embedded browser control to fetch the latest version of the webpage, which may resolve the issue if the faulty script has been removed.
Coordinate with the Website Administrator
Resolve the root cause by updating components and addressing the script compatibility issue directly with the server portal administrators.
Switch to WPS Office for a Modern, Error-Free Spreadsheet Experience
If embedded browser controls and legacy script errors in Microsoft Excel are disrupting your workflow, consider trying WPS Office. It provides a lightweight, highly compatible alternative for handling your spreadsheets without the hassle of legacy component conflicts.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office installer.
- 2. Install the Software: Run the installer and follow the quick on-screen instructions to set up the software.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Excel files to continue working seamlessly.

Frequently Asked Questions
Why am I getting a syntax error in an Excel browser control?
This typically occurs when a webpage loaded inside Excel's embedded browser control contains modern code (like a tracking or monitoring script) that the legacy browser engine cannot parse or validate, resulting in a syntax error.
Will disabling script errors fix my two-factor authentication login issue?
Disabling script error notifications only hides the warning pop-up. If the authentication process heavily relies on the script that failed to execute, you may still be unable to log in until the website administrator fixes the code.
How do I update Excel's embedded browser components?
You can update these components by keeping your Windows operating system fully updated via Windows Update. This ensures that the underlying Internet Explorer and Edge WebView2 runtime components used by Office applications are on their latest versions.




