Embed an Excel Range with Shapes and Text Boxes on a Website
Question details
The user wants to display an Excel range with its 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.
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.
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.
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.
Generate the embed code without restricting the view to a selected range. Check the preview for the shapes and text boxes.
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.

Publish a Static Image of the Excel Layout
Use an image when the website only needs to show the selected layout, not an interactive workbook.
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.

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.




