How to Embed an Excel File in Word, PowerPoint & Web

Learn how to insert Excel into Word or PowerPoint.

A colleague of mine used to spend every Friday afternoon manually copying tables from Excel into Word reports. Three hours, every week, without fail. When I finally sat down with her and showed her how to embed Excel files and live links directly into the destination document, she looked at me like I'd handed her back her evenings. The problem wasn't that the tools didn't exist — it's that nobody had explained which tool to reach for first.

That's the part most tutorials skip. Before you touch Insert or Paste Special, you need to make one decision. Everything else follows from it.

Linked, Embedded, or Published? Pick Your Method in 30 Seconds

Here's the decision framework, because "spreadsheet embed" means three different things depending on where you're putting it:

Destination Method Live updates? Safe to share externally?
Word / PowerPoint Insert → Object (embedded) No — snapshot Yes, file is self-contained
Word / PowerPoint Insert → Object (linked) Yes No — source file must travel with it
Website / webpage OneDrive iframe embed code Yes Depends on workbook permissions
Confluence / Notion OneDrive sharing link or Google Sheets Yes Depends on permissions

Permissions trip most people up before they even reach the embed step. If your workbook lives on SharePoint Online or OneDrive for Business, confirm that sharing is set to "Anyone with the link" before embedding. "People in your organization" will lock out external viewers every time. Check it first — debugging a broken iframe when the real problem is a permissions setting is a frustrating loop.

If you're new to managing files across platforms, the Excel file management and sharing guide covers the broader concepts behind how Microsoft Excel handles file access and permissions.


Step 1: Generate a Shareable Link or Iframe Embed Code from OneDrive or SharePoint

With your method chosen, the next step is getting a usable embed code or sharing link out of OneDrive or SharePoint. This is where most web embed attempts fall apart — and where the SharePoint login prompt loop starts.

Publish to Web vs. Share Link (They Are Not the Same)

OneDrive gives you two options that look similar but behave completely differently. A sharing link grants access to the file itself. The Publish to Web option generates an actual iframe embed code that renders the spreadsheet inline on a page, no sign-in required for viewers.

To get the iframe code from OneDrive personal:

  1. Open your workbook in Excel Online (via OneDrive).
  2. Go to File → Share → Embed.
  3. Click Generate. OneDrive produces an iframe snippet you can paste directly into HTML.
  4. Copy the full iframe string, including the closing tag.

That iframe is your live embedded Excel file online. It reflects changes to the source workbook automatically — edit the workbook and the embedded version on your site updates too, without re-publishing.

Why Your Embed Might Still Prompt for SharePoint Sign-In

SharePoint Online behaves more conservatively than OneDrive personal by default. If viewers keep hitting a login wall after you embed, the issue is almost always one of two things: the workbook's sharing permissions are scoped to your organization, or your SharePoint tenant admin has disabled anonymous access entirely.

For the first problem, go to the file in SharePoint, select Share, and change the link type to "Anyone with the link." For the second, you'll need to escalate to your SharePoint admin or switch to OneDrive personal for public-facing embeds. No workaround exists for a tenant-level block — that's a deliberate security configuration, not a bug.


Step 2: Paste the Embed Code Into Word, PowerPoint, or a Web Page

Once you have your embed code and confirmed permissions, the actual insertion is the quick part — though Word and PowerPoint handle it differently than you might expect.

Embedding in Word or PowerPoint

In Word (Microsoft 365, Office 2019, or Office 2016): Go to Insert → Object → Create from File. Browse to your .xlsx file. Check "Link to file" if you want a live connection; leave it unchecked for a static snapshot.

The static version is self-contained — email it without the source file and it works fine. The linked version is powerful but fragile: move or rename the source workbook and the link breaks silently.

In PowerPoint: Same path (Insert → Object), but when you double-click the embedded object, PowerPoint opens an in-place editing session inside the slide window rather than launching a separate Excel window. It looks strange the first time — you haven't broken anything; that's just how PowerPoint handles it. The embedded workbook also tends to expand to roughly twice its display size when clicked, which is exactly as disorienting as it sounds.

Embedding in a Web Page

Paste the iframe embed code directly into your HTML where you want the spreadsheet to appear. For WordPress specifically, use an HTML block rather than a Classic block — the Classic editor tends to strip or mangle iframe tags on save.

Dropping Into Confluence or Notion

Neither Confluence nor Notion can render a native Excel workbook inline. They work through OneDrive sharing links or, more reliably, through Google Sheets. Publish your data to Google Sheets, use File → Publish to the web to generate an embed link, then paste it as an embed block in Notion or use the Confluence "iframe" macro. It's a workaround rather than a first-class feature, but it works without requiring viewers to download anything.


Common Mistakes When Embedding Excel Files (Including the Security and Mobile Problems Most Guides Skip)

Four problems come up repeatedly, and three of them are almost never mentioned in tutorials.

The SharePoint login loop

Workbook permissions set to "People in your organization" will block external viewers every time. Confirm permissions before embedding, not after. See Step 1 above for the fix.

iframes as a security exposure

When you embed live Excel content via an iframe with a public OneDrive link, that URL is visible in your page source. Anyone can access the file directly, not just through the embedded view. Scope the workbook carefully: remove sensitive tabs, hide columns with personal data, and consider whether a static screenshot would serve the same purpose with less exposure. The guide to password protecting Excel files is worth reading before you publish anything externally.

Mobile responsiveness breaking

A bare iframe defaults to a fixed pixel width and breaks on mobile. Wrap it in a div with overflow-x: auto and use a percentage-based width on the iframe itself: width: 100%; height: 400px; inside a fluid container gets you most of the way there.

Sensitive tabs still visible in the embed

Embedding a workbook that has a "do not share" sheet still sitting there means it's just a tab-click away for viewers. Before generating any embed code or sharing link, delete or hide every sheet the viewer doesn't need. Hiding is not a security measure, but it reduces accidental exposure.

Key takeaway: the Linked vs. Embedded decision in Word and PowerPoint, and the Publish to Web vs. Share Link distinction in OneDrive, look like the same choice but they're not. Linked and Share Link both create connections that break when files move or permissions change. Embedded and Publish to Web create self-contained outputs that work for the recipient regardless of where your source file lives. Match the method to who's opening the document — and whether your source file will be there when they do.

For a broader foundation on how Excel handles files across these scenarios, the Excel for beginners starter guide is a good reference if any of the file-handling concepts above felt unfamiliar.


Frequently Asked Questions

Why is my embedded Excel file asking for SharePoint Online sign-in?

The most common cause is workbook permissions scoped to "People in your organization" rather than "Anyone with the link." Open the file in SharePoint, go to Share, and change the link type. If the login prompt persists, your SharePoint tenant admin may have disabled anonymous access at the organization level — no client-side fix exists for that configuration.

Can I embed an Excel file in HTML without using OneDrive?

Yes. Google Sheets is the most practical alternative. Upload your data to Google Sheets, use File → Publish to the web to generate an iframe embed code, and paste that into your HTML. For more control, libraries like SheetJS can render .xlsx files directly in the browser without any cloud service.

How do I make an embedded Excel spreadsheet mobile responsive?

Wrap the iframe in a container div styled with overflow-x: auto; width: 100%; and set the iframe itself to width: 100%; height: 400px;. This lets the spreadsheet scroll horizontally on small screens rather than getting clipped. Fixed pixel widths on the iframe are the main culprit when embeds break on mobile.