A Microsoft file hosting and synchronization service.
If the embedded Excel content suddenly stopped working, the supported fixes are:
- Regenerate the embed code from the source file.
- Open the file in OneDrive.
- Go to Files view, select the file, choose </> Embed, and select Generate.
- Replace the old HTML on the website with the newly generated embed HTML.
- Verify the file is still available and still shared.
- If the file is no longer available, or the link changed, the embedded item can stop loading.
- If the file is no longer shared, it cannot be embedded.
- Check browser cookies.
- A reported case with OneDrive embed URLs that suddenly stopped working was resolved by deleting browser cookies.
- If embedding into SharePoint, confirm the embed format is supported.
- The embed code must be iframe-based.
- script-based embed code is not supported.
- The site must use HTTPS.
- Some websites block embedding.
- A SharePoint administrator can also block embedding from external websites.
- If this is an Excel workbook hosted in SharePoint or OneDrive for Business, generate the embed code from Excel for the workbook itself.
- Open the workbook in the browser.
- Use File > Share > Embed.
- Then copy the generated iframe code.
A key limitation is that anyone visiting a webpage with an embedded OneDrive file can view it without signing in.