How to Fix the Ordinal 5640 Not Found Error in Microsoft Word
Question details
The user is unable to open a document because Microsoft Word fails to launch, displaying an error message that ordinal 5640 cannot be located in the dynamic link library wwlib.dll.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Attempting to launch Microsoft Word or open a document.
- Observed behavior
- Microsoft Word displays an error stating that ordinal 5640 is missing from the wwlib.dll file and fails to open the document.
Ensure you have closed all other running Microsoft Office applications, such as Excel and PowerPoint, as the repair process requires exclusive access to shared Office installation files.
Repair Microsoft Office Installation
Use the built-in Windows repair tool to fix corrupted or mismatched Office files causing the wwlib.dll error.
This error typically occurs when the wwlib.dll file in the Office16 installation folder becomes damaged or mismatched with other Office components. Running a repair will restore the necessary files without affecting your personal documents.
Click the Start menu and select Settings, or press the Windows key + I on your keyboard.
Go to Apps and click on Installed apps or Apps & features to view the list of programs installed on your computer.
Scroll down to find Microsoft Office or Microsoft 365. Click the three dots (or right-click) next to it and select Modify.
Select Quick Repair from the prompt and click Repair. Wait for the process to finish and test Word again to see if the error is resolved.
If the error persists after Quick Repair, repeat the steps above but select Online Repair. Once completed, restart your computer before launching Word.

Open Your Documents Instantly with WPS Office
If repairing Microsoft Word does not resolve the Ordinal 5640 error immediately, you can bypass the issue completely by using WPS Office. It is a free, lightweight suite that handles Word documents seamlessly without relying on Microsoft's DLL files.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package.
- 2. Install the software: Run the installer and follow the on-screen instructions to complete the fast setup.
- 3. Open your document: Launch WPS Writer, click Open, and select the document that Microsoft Word failed to load.

Frequently Asked Questions
What does 'Ordinal 5640 not found' mean in Word?
This error means that Microsoft Word is trying to access a specific function (ordinal 5640) within the wwlib.dll file, but the function is missing. This usually points to a corrupted, outdated, or mismatched DLL file in the Office installation folder.
Will running an Office Repair delete my personal files?
No, both Quick Repair and Online Repair only target Microsoft Office application files and registry entries. Your personal documents, spreadsheets, and presentations will remain completely unaffected.
What should I do if Online Repair doesn't fix the wwlib.dll error?
If Online Repair fails, you may need to completely uninstall Microsoft Office using the official Microsoft Support and Recovery Assistant tool, restart your computer, and then perform a clean reinstall of the Office suite.




