Fix Excel Requesting Microsoft 365 Sign-In When Saving as PDF
Question details
Users are experiencing an unexpected authentication loop where exporting a document triggers a web login request despite already being connected.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Exporting or saving an active Excel workbook as a PDF file directly to a connected OneDrive directory.
- Observed behavior
- Excel automatically opens a web browser and prompts the user to sign in to Microsoft 365, interrupting the PDF save process even when the user's account is already authenticated in the app.
Verify that your Microsoft 365 subscription is active and that your OneDrive account is syncing properly in the system tray before proceeding with troubleshooting.
Update Microsoft Office to the Latest Build
Outdated Office builds frequently contain authentication bugs. Forcing a manual update can resolve underlying login loops when saving files.
Microsoft frequently releases patches to fix synchronization and account authentication glitches between Excel and OneDrive. Ensuring you are on the latest Business Premium or Microsoft 365 build is the primary solution to this PDF export bug.
Open Microsoft Excel and click on 'File' in the top-left corner, then select 'Account' from the bottom of the left-hand menu.
Click the 'Update Options' dropdown menu next to Office Updates and select 'Update Now'.
Wait for the updates to download and install, then restart Excel and attempt to save your workbook as a PDF to OneDrive again.

Reset the OneDrive Sync App
Resetting OneDrive forces the app to rebuild its synchronization settings, resolving persistent account token conflicts across Office apps.
Change Your Default Web Browser
Since Excel forces a browser window to handle the sign-in request, corrupted cookies in your default browser might be causing the loop.
Export PDFs Seamlessly with WPS Office
If Microsoft Excel continues to interrupt your workflow with persistent login requests, consider switching to WPS Office. It provides a lightweight, hassle-free environment to view, edit, and export spreadsheets as PDFs without forcing cloud account authentication loops.
- 1. Open Your Spreadsheet in WPS Office: Launch WPS Spreadsheets and open your existing .xlsx file without worrying about compatibility.
- 2. Click Export to PDF: Navigate to the 'Menu' or 'Tools' tab and select 'Export to PDF'.
- 3. Save Locally Without Prompts: Choose your local destination and click save. The process completes instantly without requiring a web browser sign-in.

Frequently Asked Questions
Why does Excel keep asking me to sign in when I am already signed into Microsoft 365?
This happens when the authentication token shared between Microsoft Excel, your default browser, and OneDrive expires or becomes corrupted. Excel attempts to refresh the connection by opening a browser, which can result in an infinite loop if cookies are disabled or conflicting.
Can I save an Excel file as a PDF without using OneDrive?
Yes. When you click 'Save As', choose a local directory on your PC (such as your Desktop or Documents folder) instead of selecting the OneDrive cloud path. This bypasses the cloud sync and prevents the sign-in prompt.
Will resetting OneDrive delete my saved spreadsheets?
No, resetting the OneDrive application using the run command only refreshes the synchronization configurations and connection tokens. It does not delete any personal files or spreadsheets stored on your hard drive or in the cloud.
Does this sign-in issue affect other Microsoft Office apps like Word?
It can. If the underlying cause is a OneDrive sync issue or an outdated Microsoft 365 build, you may experience the exact same browser sign-in prompt when trying to export a Word document to PDF on a connected OneDrive path.




