Fix Cannot Attach Open Word or Excel File from OneDrive
Question details
The user is unable to attach or upload a Word or Excel document stored in OneDrive because the system throws an error stating the file is in use.

- Product
- Microsoft 365 / OneDrive
- Device & OS
- Windows 11
- Scenario
- Attempting to attach or upload a document to an email or website while the file is currently open in Word or Excel and synced via OneDrive.
- Observed behavior
- The system reports a "file in use" error and blocks the attachment or upload process until the file lock is released.
Ensure your OneDrive application is running normally and check if any sync processes are currently pending or stuck in the system tray.
Use the Built-in Share Feature in Word or Excel
Directly share or attach the file from within the Microsoft 365 application to bypass external file-locking restrictions.
When a document is open and actively syncing with OneDrive, Windows restricts other applications from accessing it. Using the native sharing tool inside Word or Excel circumvents this problem by properly packaging the open file.
In your open Word or Excel document, locate and click the 'Share' button typically found in the top-right corner of the application window.
From the dropdown menu, choose 'Send a Copy' or 'Attach as a Copy' to prompt your default email client to draft a new message with the file already attached.

Close the Document Before Attaching
Release the OneDrive and Microsoft 365 file lock by completely closing the document.
Save a Local Copy Outside of OneDrive
Create a temporary local copy of the file on your computer to avoid OneDrive sync locks.
Experience Seamless File Sharing with WPS Office
If you frequently encounter file locking issues and "file in use" errors with Microsoft 365, consider switching to WPS Office. It provides a lightweight, free alternative with built-in seamless cloud sharing, allowing you to attach and send files effortlessly without workflow interruptions.
- 1. Download WPS Office: Visit the official WPS website to download and install the free office suite on your Windows PC.
- 2. Open Your Documents: Launch WPS Office and open your existing Word or Excel files seamlessly.
- 3. Share Effortlessly: Use the integrated sharing tools to send files without experiencing file lock or sync errors.

Frequently Asked Questions
Why does Windows 11 say my OneDrive file is in use when I try to attach it?
This happens because Microsoft 365 and OneDrive place a strict lock on the document while it is open to ensure active synchronization and prevent data loss. Third-party applications, like web browsers or non-Microsoft email clients, cannot read the file simultaneously, which triggers the error.
Can I attach a OneDrive file using the Outlook desktop app while it is open?
Yes, the Microsoft Outlook desktop application is deeply integrated with the Microsoft 365 ecosystem. It can typically attach open files as cloud sharing links or copies without triggering the file lock error commonly found in webmail.
Does pausing OneDrive sync fix the attachment issue?
Pausing OneDrive synchronization can temporarily release the lock placed by the sync engine, which might allow the upload to proceed. However, the most reliable method is to either use the built-in 'Share' feature or simply save and close the document before attaching.
How do I quickly share my open Word document as a PDF?
You can go to File > Export > Create PDF/XPS Document, or click the Share button and select 'Send a Copy' followed by 'PDF'. This generates a temporary PDF file for your email client and easily bypasses the 'file in use' lock on the original document.




