Office Apps Not Opening

How to Fix the Ordinal 5640 Not Found Error in Microsoft Word

Huda QurayshiHuda Qurayshi Nov 2, 2026 869 views

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.

How to Fix the Ordinal 5640 Not Found Error in Microsoft Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Windows Settings

Click the Start menu and select Settings, or press the Windows key + I on your keyboard.

2
Navigate to Installed Apps

Go to Apps and click on Installed apps or Apps & features to view the list of programs installed on your computer.

3
Modify Microsoft Office

Scroll down to find Microsoft Office or Microsoft 365. Click the three dots (or right-click) next to it and select Modify.

4
Run Quick Repair

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.

5
Perform an Online Repair

If the error persists after Quick Repair, repeat the steps above but select Online Repair. Once completed, restart your computer before launching Word.

Repair Microsoft Office Installation
Internet Connection: The Online Repair option requires an active internet connection to download and replace corrupted Office files.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and download the free installation package.
  2. 2. Install the software: Run the installer and follow the on-screen instructions to complete the fast setup.
  3. 3. Open your document: Launch WPS Writer, click Open, and select the document that Microsoft Word failed to load.
Fully compatible with Microsoft Word (.docx, .doc) formatsLightweight installation that avoids complex DLL and registry errorsFamiliar user interface makes switching easy with zero learning curveFree to use for everyday document creation and editing
microsoft office alternative - wps office

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.