File Sharing Problems

How to Embed an Excel Workbook Without an iframe (Using xlembed)

Maira MehtabMaira Mehtab Oct 19, 2026 869 views

Question details

The user needs to generate an Excel for the web embed link that utilizes the Office Online xlembed URL path rather than relying on standard iframe HTML tags.

How to Embed an Excel Workbook Without Using an iframe
Product
Microsoft Excel for the web
Device & OS
not provided
Scenario
Embedding a hosted Excel workbook into a webpage or application using a direct Office embed URL.
Observed behavior
The user requires the proper method to extract a fully functional xlembed URL, complete with all necessary security and configuration query parameters.
Before you start

Ensure that your workbook is saved to a supported Microsoft 365 cloud location, such as OneDrive or SharePoint, and that external file sharing permissions are enabled.

Solution 1Recommended

Generate the xlembed URL via Excel for the Web

Use the built-in Share and Embed feature in Excel for the web to safely extract the official xlembed URL.

It is highly recommended not to manually construct or modify the xlembed URL. The system automatically generates unique, workbook-specific security tokens and configuration values that must be present in the URL for the embedded file to render correctly.

1
Open the Workbook Online

Navigate to your OneDrive or SharePoint account and open the target workbook in Excel for the web.

2
Access the Embed Menu

Click on the 'File' tab in the top ribbon menu, select 'Share' from the left sidebar, and then click on 'Embed'.

3
Generate Embed Code

In the Embed dialog box, customize your display options (such as showing gridlines or a specific range) if necessary. The system will generate a block of HTML code.

4
Extract the xlembed URL

Look inside the generated iframe code for the 'src=' attribute. Copy only the URL enclosed in the quotes, which begins with the xlembed path. Ensure you include all trailing query parameters.

Generate the xlembed URL via Excel for the Web
Embed Option Unavailable?: If you cannot see the Embed option in the Share menu, verify with your Microsoft 365 administrator that external sharing is permitted for your account or SharePoint site.
Free Microsoft Office alternative

Share and Embed Spreadsheets Effortlessly with WPS Office

If managing Microsoft Office embedding permissions and extracting complex xlembed URLs is too time-consuming, WPS Office offers a highly compatible and lightweight alternative. Enjoy seamless Excel format support and straightforward cloud sharing without the technical hassle.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet file.
  2. 2. Click Share: Click the 'Share' button located in the top right corner of the application interface.
  3. 3. Create a Link: Select your desired access permissions (e.g., Anyone with the link can view) and click 'Create Link' to share your file effortlessly.
Fully compatible with Microsoft Excel (.xlsx and .xls) file formatsGenerate simple, direct sharing links with customizable view and edit permissionsFree, lightweight, and fast alternative to Microsoft OfficeFamiliar user interface requires zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why is the Embed option missing in Excel for the web?

The Embed option is typically missing if it has been disabled by your organization's Microsoft 365 administrator for security reasons, or if the file is saved locally rather than in a supported cloud location like OneDrive or SharePoint.

Can I manually create an xlembed URL for my Excel file?

No, manually constructing the URL is strongly discouraged. The generated xlembed URL contains dynamic security tokens and specific query parameters required to authorize and correctly display the workbook online.

Will users need to log in to view the embedded Excel workbook?

This depends on the sharing settings applied to the workbook when generating the embed link. If external anonymous sharing is disabled by your administrator, viewers may be prompted to sign in with an authorized Microsoft account.