logo
search
Permission & Access Issues

How to Embed an Excel Spreadsheet Without Requiring Sign-In

Maira MehtabMaira Mehtab Sep 27, 2026 869 views

Question details

The user wants to embed an Excel spreadsheet on a public website so visitors can view it without needing to authenticate or sign in to a Microsoft account.

Product
Microsoft Excel (OneDrive / SharePoint)
Device & OS
not provided
Scenario
Embedding an Excel file via an iframe on a website for public, anonymous visitors.
Observed behavior
Website visitors are prompted to sign in to view the embedded Excel spreadsheet, even though link sharing was previously set to 'anyone with the link'.
Before you start

Ensure you have access to your Microsoft 365 Admin Center, as resolving authentication prompts for public embeds often requires organization-level administrative privileges.

Solution 1Recommended

Verify File Permissions and Embed Link Type

Ensure the individual file is properly configured for anonymous public access before generating the embed code.

Even if you generated an embed code, the underlying file permission must allow anonymous viewing. If the link was set to internal users only, the iframe will ask website visitors to log in.

1
Open OneDrive or SharePoint

Navigate to the location of the Excel file you wish to embed.

2
Modify Share Settings

Click the 'Share' icon next to the file, click the gear icon to open link settings, and select 'Anyone with the link'.

3
Generate the Embed Code

Open the file in Excel for the Web, go to File > Share > Embed, and copy the provided iframe code.

4
Update Your Website

Replace the old embed code on your website with the newly generated one.

Free Microsoft Office alternative

Avoid Complex Cloud Policies with WPS Office

If Microsoft 365's strict tenant policies prevent you from sharing spreadsheets easily, try WPS Office. It provides a lightweight, highly compatible alternative with straightforward file sharing and no mandatory authentication hurdles for simple public documents.

  1. 1. Download and Install: Get WPS Office for free and install it on your device.
  2. 2. Open Your Spreadsheet: Easily open and edit your existing Excel (.xlsx) files directly.
  3. 3. Share with Ease: Utilize WPS Cloud to generate simple public sharing links without strict organizational barriers.
Highly compatible with Microsoft Excel (.xlsx, .xls) and CSV formats.Free and lightweight alternative to heavy cloud-based suites.Easy link sharing without complex organizational tenant policies.Familiar user interface makes migration seamless.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my embedded Excel sheet still ask for a password even with an 'Anyone' link?

This usually happens because your organization's SharePoint or OneDrive sharing policies have disabled anonymous access at the tenant level, which overrides your file-level 'anyone with the link' setting.

Can I embed an Excel file on my website for public editing?

While possible by setting the link permissions to 'Anyone can edit', it is highly discouraged for public websites due to significant security risks and the potential for malicious data alterations.

How do I know if my organization blocks public file sharing?

When trying to create a sharing link in OneDrive or SharePoint, the 'Anyone with the link' option will be grayed out or entirely unavailable, indicating that tenant policies restrict anonymous access.

Are there other tools to embed a spreadsheet publicly?

Yes, you can use built-in 'Publish to Web' features if available, or switch to alternative office suites and cloud drives that offer simpler public link-sharing options without enterprise-level restrictions.