File Sharing Problems

Embed OneDrive Word and Excel Files Without Sign-In

Muhammad TalhaMuhammad Talha Nov 20, 2026 868 views

Question details

The user wants website visitors to view embedded OneDrive Word and Excel files without signing in.

Embed OneDrive Word and Excel Files Without Sign-In
Product
OneDrive for Business, Word for the web, and Excel for the web
Device & OS
not provided
Scenario
A Word or Excel file stored in OneDrive for Business needs to be embedded on a public website.
Observed behavior
Visitors are prompted to sign in when anonymous sharing is disabled or restricted.
Before you start

Confirm that the file is suitable for public viewing and that your organization permits Anyone links. You may need a Microsoft 365 administrator to check the tenant and OneDrive sharing settings.

Solution 1Recommended

Enable anonymous access and embed the OneDrive file

Use an Anyone link and a supported embed option to make the file viewable without sign-in.

Anyone links may be restricted by your organization's Microsoft 365 or OneDrive settings. Embed options can also vary by file type and account.

1
Check sharing permissions

Ask your Microsoft 365 administrator to check external sharing in the SharePoint admin center and allow Anyone links for the organization and the relevant OneDrive account, if permitted by policy.

2
Create a view-only link

In OneDrive for Business, select the Word or Excel file, choose Share or Copy link, open the link settings, and select Anyone with the link and view-only access. Apply the settings and copy the link.

3
Get the embed code

Open the file in Word or Excel for the web and look for File > Share > Embed. If the option is available, generate and copy the provided iframe code.

4
Add it to your page

In WordPress, add a Custom HTML block, paste the iframe code, and publish or update the page. Your WordPress setup must allow iframe embeds.

5
Test anonymous viewing

Open the published page in a private browser window where you are not signed in to Microsoft 365. If the file still requests sign-in, check the link permissions and embedding restrictions with your administrator.

Enable anonymous access and embed the OneDrive file
If embedding is unavailable: An Anyone link alone does not guarantee that an embed option is available for every account or file. Do not replace the iframe URL with a sharing link unless Microsoft’s embed instructions for that file specifically require it.
Free Microsoft Office alternative

Prepare Word and Excel Files With WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for editing documents and spreadsheets. Its Microsoft Office format compatibility makes it easy to move existing files into WPS, though it cannot change your organization's OneDrive sharing rules.

Edit documents and spreadsheets before sharing them publiclyCompatible with Microsoft Word DOCX and Excel XLSX filesFamiliar tools make migration from Microsoft Office easierFree and lightweight for everyday office work
microsoft office alternative - wps office

Frequently Asked Questions

Why does my embedded OneDrive file ask visitors to sign in?

The file may not have an Anyone link, or anonymous sharing may be restricted for the organization or OneDrive account. Check the file's Share > Link settings and ask your administrator to review the sharing policy.

Can I enable Anyone links if my organization blocks them?

Not on your own if the setting is restricted by policy. Ask a Microsoft 365 administrator to review external sharing in the SharePoint admin center.

What if I cannot find the Embed option?

Check File > Share in Word or Excel for the web. Availability varies by account and file type; if Embed is not offered, ask your administrator about supported publishing options.

How can I check whether visitors can view the file anonymously?

Open the published page in a private or incognito browser window without signing in to Microsoft 365. Confirm that the embedded content loads without a sign-in prompt.