File Sharing Problems

Embed an Excel Range with Shapes and Text Boxes on a Website

Ayan MasoodAyan Masood Nov 14, 2026 869 views

Question details

The user wants to display an Excel range with its shapes and text boxes on a website.

Embed an Excel Range with Shapes and Text Boxes on a Website
Product
Microsoft Excel for the web and OneDrive
Device & OS
not provided
Scenario
A workbook stored on OneDrive is embedded on a website with the display restricted to a selected range.
Observed behavior
Shapes and text boxes are missing from the restricted-range preview and website embed, but appear when the entire workbook is embedded.
Before you start

Open the workbook in OneDrive and check the range and objects you want visitors to see. Confirm that your OneDrive account offers an embed option and review which workbook content the resulting embed may expose.

Solution 1Recommended

Embed the Entire Excel Workbook

Use the full-workbook embed when the restricted range omits shapes and text boxes.

Excel web embedding may not display shapes and text boxes when the embed is restricted to a cell range. Embedding the complete workbook can preserve those objects, although visitors may be able to access other workbook content.

1
Open the embed options

In OneDrive on the web, select the workbook and choose Embed. If needed, open it in Excel for the web and look for an embed option under File or Share.

2
Use the full workbook

Generate the embed code without restricting the view to a selected range. Check the preview for the shapes and text boxes.

3
Add the code to your website

Copy the generated HTML embed code into your website editor, publish the page, and test it in a browser where you are not signed in.

Embed the Entire Excel Workbook
Review visibility: A full-workbook embed may expose other sheets or data. Check the available sharing and embed settings before publishing.
Free Microsoft Office alternative

Edit Excel Layouts with WPS Spreadsheets

WPS Office is a free, lightweight, easy-to-use alternative for working with spreadsheets in a familiar interface. Open compatible Excel files and continue editing with minimal disruption. WPS does not fix Microsoft OneDrive's restricted-range embedding behavior.

Edit spreadsheet layouts and objects in WPS SpreadsheetsOpen and save compatible Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface for an easier transitionWork with documents using a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why do shapes disappear when I embed only an Excel range?

Excel's web embed may not support displaying shapes and text boxes in a restricted-range view. Generate a full-workbook embed and check whether the objects appear in its preview.

Can I show only the relevant content without embedding the whole workbook?

For a noninteractive display, capture the range and objects as a screenshot and insert it through your website editor's image control. The screenshot must be updated manually when the workbook changes.

Will putting the objects on a separate worksheet fix the range embed?

A dedicated worksheet can help organize the content, but it does not guarantee that objects will appear in a restricted-range embed. Test the generated preview and published page before relying on it.

Where can I find the Excel embed code?

In OneDrive on the web, select the workbook and look for Embed. Depending on your account and interface, an embed option may also appear under File or Share in Excel for the web.