Embedding code from an Excel file in Onedrive does not work

Theo Duncker 0 Reputation points
2025-01-19T09:24:20.1233333+00:00

When I use the embed code for an Excel file in Onedrive, the content is not displayed on my website. My modus operandi; I select the file in Onedrive, go to File, Share, Embed. An Iframe code is created but when I copy it and paste it as HTML in my webpage, the content is not displayed. Blank page. It has always worked fine so I don't understand what is wrong now.

Microsoft 365 and Office | OneDrive | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Theo Duncker 0 Reputation points
    2025-01-26T11:06:13.4233333+00:00

    Hi Jiajing,

    Thank you for your comment. I'm using Personal One Drive. The src code is included in the embedded code. src=https://1drv.ms/f/c/f9e0711a6859a98a.......etc.

    I use Microsoft Edge as browser but have also tried Chrome and Firefox. Same results. When I use the "share with others" code generated by Onedrive and edit the iframe syntax manually then the link is working, But when I use the generated code by "Embedded" then I have no result pasting this code in my Wordpress page.

    Thank you

    0 comments No comments

  2. Jiajing Hua 18,140 Reputation points Moderator
    2025-01-28T08:47:16.4633333+00:00

    Hi @Theo Duncker

    Thanks for your back and sharing.

    There are indeed similar issues on Q&A forum and other community. Such as this thread: Embedding part of Excel file from Onedrive in iframe stopped working.

    The issue seems to stem from changes Microsoft made to the OneDrive sharing link and embedding mechanism. Microsoft has simplified URLs, which may break older embedding methods that rely on these parameters.

    In the embedded URL, the previous "onedrive.live.com" was changed to "1drv.ms", the"resid"(The identifier for the file.) and "authkey"(A key used to authenticate the file’s access) information was removed.

    I suggest you post a feedback thread in: https://feedbackportal.microsoft.com/feedback/forum/e3f04660-2c1c-ec11-b6e7-0022481f8472

    Microsoft will listen to users' feedback and consider them for additional feature/future versions of Microsoft products. Your feedback helps Microsoft developers know which features are most important to you.

    Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.