Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Run an Online Repair of Microsoft 365 first, because it repairs the entire Office installation used by both Word and Excel.
1. Repair Microsoft 365
Save any open work and ensure the computer is connected to the internet.
Windows 11
- Right-click Start and select Installed apps.
- Find Microsoft 365 or Microsoft Office.
- Select the three dots beside it, then Modify.
- If prompted for permission, select Yes.
- Select Online Repair → Repair.
- Follow the prompts, restart the computer, and test Word and Excel.
Windows 10
- Right-click Start and select Apps and Features.
- Select Microsoft 365 or Microsoft Office, then Modify.
- Select Online Repair → Repair.
- Complete the repair, restart, and test the applications.
Online Repair is preferable to Quick Repair here because it performs the more complete repair. It repairs the entire Office suite, even when the problem appears in only Word or Excel.[^1^](https://support.microsoft.com/office/-something-went-wrong-error-when-you-try-to-start-a-microsoft-365-app-4b4471dd-cf86-4a37-910d-35a01a6c7d17#windows-10 ""Something went wrong" error when you try to start a Microsoft 365 app")
Signing in successfully to the Microsoft account does not test the locally installed Office files; the desktop applications can still require repair.
2. If Online Repair fails or error 0xc000012f remains
Repair Windows components before trying Online Repair again:
- Enter Command Prompt in Windows Search.
- Right-click Command Prompt and select Run as administrator.
- Select Yes.
- Run these commands in this order:
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow
Allow DISM to finish before starting SFC, and do not close the window until SFC reaches 100%. Restart Windows afterward, test Word and Excel, and then retry Online Repair if necessary.^2^
If repair still cannot run, record the complete error message—especially the name and path of any DLL file shown—along with whether the PC uses Windows 10 or 11. Those details distinguish an Office Click-to-Run failure from a broader Windows component problem.
References