logo
search
Office Settings & Configuration

How to Hide the Excel Toolbar in an Embedded IFrame

Natalie TaylorNatalie Taylor Oct 9, 2026 868 views

Question details

The user wants to know if it is possible to hide the Excel toolbar when embedding a spreadsheet in an HTML iframe on a webpage.

How to Hide the Excel Toolbar in an Embedded IFrame
Product
Excel
Device & OS
not provided
Scenario
Embedding an Excel spreadsheet into a website using an iframe and attempting to remove the default Microsoft Excel toolbars for a cleaner UI.
Observed behavior
The Excel toolbar remains visible because standard CSS modifications from the host webpage are blocked by cross-origin security policies.
Before you start

Before modifying your webpage code, ensure you have access to the original embed link generated by OneDrive or Excel for the Web, as any adjustments must be made directly to the source URL rather than your site's CSS.

Solution 1Recommended

Customize the Excel Embed URL Parameters

Modify the iframe's source URL to include specific Microsoft parameters that hide interface elements natively, bypassing cross-origin restrictions.

Because of Cross-Origin Resource Sharing (CORS) security policies, web browsers prevent a parent website from using CSS or JavaScript to modify the contents of an iframe hosted on a different domain (such as Microsoft or OneDrive).

To hide specific elements of the embedded spreadsheet, you must rely on URL parameters provided by the Excel web viewer.

1
Locate the Embed Code

Open your website's HTML editor and find the iframe tag containing your embedded Excel spreadsheet.

2
Identify the Source URL

Look at the 'src' attribute within the iframe tag, which contains the URL pointing to your Excel file.

3
Append Display Parameters

Add parameters to the end of the URL (after a '?' or '&' symbol). Try appending '&wdAllowInteractivity=False' or '&wdHideHeaders=True' to restrict the view and hide editing menus.

4
Save and Refresh

Save your HTML changes and refresh the host webpage to verify if the toolbar has been successfully hidden based on your specific OneDrive sharing settings.

Customize the Excel Embed URL Parameters
Limitations of Free Embeds: Some toolbars, such as the bottom download and branding bar on free OneDrive personal accounts, are mandatory and cannot be entirely removed using URL parameters.
Free Microsoft Office alternative

Switch to WPS Office for Flexible Spreadsheet Management

If you are frustrated by the limitations of embedding Excel files and dealing with restrictive cross-origin policies, WPS Office provides a lightweight, highly compatible alternative for creating, editing, and sharing your spreadsheets.

  1. 1. Download the Installer: Visit the official WPS Office website and click the download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installation file and follow the on-screen instructions to set up the software.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Excel files to experience seamless compatibility and easy sharing.
Completely free and lightweight Office suiteFully compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Familiar user interface for a seamless migrationEasy document link-sharing and collaboration features
microsoft office alternative - wps office

Frequently Asked Questions

Can I use CSS 'display: none' to hide the Excel iframe toolbar?

No. When an iframe is hosted on another domain (like OneDrive or Microsoft), browsers enforce same-origin security rules (CORS). This prevents the CSS on your host page from accessing or hiding elements inside the embedded Excel interface.

What are URL parameters for Excel embeds?

URL parameters are special commands added to the end of your embed link (for example, '&wdHideGridlines=True'). They instruct the Excel web viewer on how to render the file, allowing you to hide certain elements like headers or gridlines without needing CSS.

Why does my embedded Excel sheet still show a bottom bar after adding parameters?

Microsoft frequently updates its embed viewer policies. For free consumer OneDrive accounts, certain branding and action bars (like the print or download buttons) are often mandatory and cannot be disabled with URL parameters.