How to Hide the Excel Toolbar in an Embedded IFrame
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.

- 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 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.
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.
Open your website's HTML editor and find the iframe tag containing your embedded Excel spreadsheet.
Look at the 'src' attribute within the iframe tag, which contains the URL pointing to your Excel file.
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.
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.

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. Download the Installer: Visit the official WPS Office website and click the download button for your operating system.
- 2. Install WPS Office: Run the downloaded installation file and follow the on-screen instructions to set up the software.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing Excel files to experience seamless compatibility and easy sharing.

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.




