Cannot open word or Excel. Get error message 0xc000012f

Sharon and Tom Bittle 0 Reputation points
2026-11-30T18:40:02.73+00:00

I can sign on to Microsoft account but when I try to access Word or Excel from the desktop I get Error message 0xc000012f.

excel

Microsoft 365 and Office | Install, redeem, activate | For home | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. AI answer

    2026-11-30T18:40:49.5333333+00:00

    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

    1. Right-click Start and select Installed apps.
    2. Find Microsoft 365 or Microsoft Office.
    3. Select the three dots beside it, then Modify.
    4. If prompted for permission, select Yes.
    5. Select Online Repair → Repair.
    6. Follow the prompts, restart the computer, and test Word and Excel.

    Windows 10

    1. Right-click Start and select Apps and Features.
    2. Select Microsoft 365 or Microsoft Office, then Modify.
    3. Select Online Repair → Repair.
    4. 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:

    1. Enter Command Prompt in Windows Search.
    2. Right-click Command Prompt and select Run as administrator.
    3. Select Yes.
    4. 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

    1. "Something went wrong" error when you try to start a Microsoft 365 app
    2. Using System File Checker in Windows | Microsoft Support
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.
  2. Vikki-T 15,220 Reputation points Microsoft External Staff Moderator
    2026-12-01T08:55:20.6+00:00

    Hi Sharon and Tom Bittle,

    Since the AI answer has already covered Online Repair, DISM, and SFC, please try those steps first and let me know the results.

    If the same error remains, you can also create a new local Windows user account, sign in to that account, and test Word and Excel there. If the applications open normally in the new account, the issue is likely limited to your current Windows user profile. If the same error appears there as well, it would point more toward the Office installation or Windows components.

    Please also share the complete error message, including any DLL file name or file path displayed, as that detail can help identify the affected component. Make sure to remove any personal information before posting a screenshot. Thank you so much for your understanding.     


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.