Excel error 0xc0000142 means Windows could not initialize a component Excel needs while starting the program. Close and reopen Excel, then try excel /safe from the Windows Run box; if Excel opens in Safe Mode, disable add-ins and test again, and if it does not, repair Microsoft 365 from Windows Settings.
What error 0xc0000142 means
The hexadecimal code 0xc0000142 corresponds to the Windows status code STATUS_DLL_INIT_FAILED. A DLL is a shared program component that Windows applications can load when they start. The message indicates that a component’s initialization failed; it does not, by itself, identify which component failed or prove that Excel’s files or a particular workbook are damaged.
Excel relies on more than its main program file. Its startup can involve Office components, add-ins, files in startup folders, Windows libraries, security software, and settings associated with the current user account. A failure in one of these areas can interrupt launch before the Excel window appears. The same code can also occur with other Windows programs, so it is a general startup error rather than an Excel-only diagnosis.
When investigating, note exactly when the message appears. Does it appear immediately after launching Excel, after a recent Office or Windows update, or only when opening a certain workbook? Does Word or another Office app open normally? Those details help separate an Excel-specific issue from a broader Office installation or Windows problem.
Start with the quick, low-risk checks
Before changing settings, restart Windows and try Excel again. A restart can clear a temporarily stuck Office process or a pending update. If Excel remains open in the background, close it through Task Manager before relaunching: press Ctrl+Shift+Esc, select an Excel process if one is listed, and choose End task. Do not end unrelated processes.
Then check whether Excel is the only affected program. Try opening another Office app, such as Word, and a separate Windows application. If several Office apps fail with the same code, an Office repair is more relevant than changing an Excel workbook setting. If many unrelated programs fail, investigate Windows updates, system files, or a managed-device issue.
Install available updates through the normal channels. In desktop Excel, when it opens, use File > Account > Update Options > Update Now. If Excel will not open, use Windows Update in Settings and try Office repair once Windows updates have finished. On a work or school computer, update controls may be managed by an administrator; do not bypass organizational policies.
Test Excel in Safe Mode
Safe Mode starts Excel without loading most add-ins and some startup customizations. It is a useful comparison, not a permanent repair. Press Windows key+R, enter excel /safe, and press Enter. If Windows asks which app to use, make sure the command is being run in the Run dialog rather than typed into a workbook or browser.
If Excel opens, the underlying program can start in this reduced mode. That makes an add-in, startup file, or customized setting more likely, although it does not prove which one is responsible. Close Safe Mode and try the add-in checks below. If Safe Mode produces the same error, continue to Office repair and Windows checks; repeatedly launching it is unlikely to help.
Safe Mode is a Windows desktop Excel troubleshooting option. Excel for the web runs in a browser and does not launch the installed Windows application, so it cannot test or fix a local startup failure. Excel for Mac does not use the Windows error code 0xc0000142; if a Mac user sees that code, check which Windows app or remote desktop is actually displaying it.
Disable add-ins and startup customizations
If Safe Mode works, disable add-ins temporarily and restart Excel normally. In Excel, open File > Options > Add-ins. At the bottom, select COM Add-ins in the Manage list and choose Go. Clear the checkboxes, select OK, close Excel, and launch it normally. If the error disappears, turn add-ins back on one at a time, restarting after each change. The last one enabled before the failure returns is a strong candidate; update it or contact its publisher.
Excel also has other add-in types. In the same Add-ins page, review Excel Add-ins as well as COM Add-ins, using the relevant Manage selection and Go button. Change only one category or item at a time so the result is clear. If the machine is managed, some add-ins may be required by the organization; ask IT before removing or changing them.
Startup workbooks can also affect launch. Excel may open files from an XLSTART folder or from a folder specified in its startup options. If Excel opens in Safe Mode, inspect File > Options > Advanced and the General section for the setting that opens files from a folder at startup. Record its existing value before changing it. Move suspected files out of the startup location temporarily rather than deleting them, then test Excel. Restore the files if the change makes no difference.
Repair the Microsoft 365 installation
If Safe Mode also fails, or if several Office applications have launch trouble, run an Office repair. Save work and close all Office apps first. In Windows 11, open Settings > Apps > Installed apps, find Microsoft 365 or Office, select the menu beside it, and choose Modify. In Windows 10, use Settings > Apps > Apps & features, select the Office entry, and choose Modify. The exact label can vary with the installed Office edition.
Choose Quick Repair first if Windows offers both repair options. It checks and repairs common installation problems and generally takes less time. If the error remains, run Online Repair. Online Repair requires an internet connection, may take longer, and can require Office sign-in or activation afterward. Follow the prompts and restart Windows if requested. Repair options can look different for Office versions installed through an organization or the Microsoft Store; use the options shown for that installation or ask its administrator.
Repair is not the same as uninstalling your documents. Personal workbooks are normally stored separately from the Office program, but close and save any available work before changing the installation. If Office asks you to sign in afterward, use the account licensed for that copy. Avoid removing Office manually or deleting program folders as a first step, because that can make recovery more difficult.
Check Windows and security-related causes
If Office repair does not help, install pending Windows updates and restart. On a personally managed Windows PC, Windows system-file checks may be appropriate when other applications also fail or Windows reports component problems. Open Windows Terminal or Command Prompt as an administrator and run the Deployment Image Servicing and Management command first, followed by System File Checker: DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow. Let each process finish and follow any repair or restart instructions. These tools check Windows components; they are not Excel-specific fixes and may not resolve an Office-only issue.
Security software can sometimes interfere with application startup, but turning off antivirus protection or adding broad exclusions is not a safe diagnostic shortcut. Check its quarantine or protection history for a specific Office file or event, and use the vendor’s instructions or ask your IT administrator before changing protections. Do not download a DLL from a third-party website or copy one from another computer: the file may be unsafe, incompatible, or the wrong version, and the error does not tell you which DLL to replace.
For a work or school device, contact support before running elevated repair commands, changing security settings, or reinstalling Office. Administrators may control Office updates, add-ins, and device policies. If Excel was recently updated, include the approximate update date and whether other Office apps are affected; that information can help support staff compare the issue with managed deployment records.
When the problem may be a workbook or user profile
A 0xc0000142 message that appears before Excel opens is usually a launch problem, not evidence that the workbook you intended to open is corrupt. Still, if Excel starts successfully by itself but fails only when a particular file is opened, test a copy of that file and see whether other workbooks open. A damaged workbook, embedded content, or workbook-specific automation may cause a separate failure after launch. Preserve the original and avoid repeatedly saving over it while troubleshooting.
If Excel works for another Windows account on the same computer, the issue may be tied to the original account’s Excel settings, startup files, or profile. This comparison can narrow the search, but creating a new account or migrating a profile is a larger change. Back up important files and ask an administrator for help on a managed PC rather than deleting profile data. If the same failure affects every user, system-wide Office or Windows causes become more plausible.
How to choose the next step
Use the result of each test to avoid making several changes at once. The most efficient sequence is:
- Restart and compare apps. Check whether Excel alone fails or whether other Office and Windows programs do too.
- Run Excel in Safe Mode. If it opens, investigate add-ins and startup files; if it does not, do not spend time disabling add-ins from the normal interface.
- Repair Office. Start with Quick Repair, then use Online Repair if needed and available.
- Check Windows and seek help. Install updates, consider system-file checks when the wider system is affected, and involve IT or Microsoft support if the problem persists.
Keep a short record of the error text, when it began, which apps fail, and the steps that changed the result. If the error began after installing an add-in or update, note its name and date rather than assuming it is the cause. This makes a support request more useful and reduces the risk of repeating steps that have already been ruled out.
Frequently Asked Questions
What does error 0xc0000142 mean in Excel?
It means Windows reports that a component failed to initialize as the application started. The code does not identify the specific DLL or establish that a workbook is damaged. Use Safe Mode and the other apps comparison to narrow down the likely source.
How do I start Excel in Safe Mode?
Press Windows key+R, type excel /safe, and press Enter. If Excel opens, test whether disabling add-ins or moving startup files out of the way resolves normal startup. Safe Mode is for the installed Windows desktop app.
Will repairing Office delete my Excel files?
Office repair targets the program installation, and ordinary workbooks are usually stored separately. Save any accessible work first, close Office apps, and follow the repair prompts. If Online Repair asks you to sign in afterward, use the account associated with your Office license.
Should I download a replacement DLL to fix 0xc0000142?
No. The code does not say which DLL failed, and a DLL from an unofficial download site may be unsafe or incompatible. Use Office’s repair options and Windows’ built-in checks instead.
Why does Excel work in Safe Mode but not normally?
Safe Mode skips many add-ins and startup customizations. A COM add-in, Excel add-in, or startup workbook is therefore a reasonable place to investigate. Re-enable items one at a time and restart between tests to identify a likely trigger.
What if every Office app shows the same error?
That points toward a shared Office installation issue or a broader Windows problem rather than an Excel-only setting. Try Office repair, check for pending Windows updates, and contact your organization’s IT team if the computer is managed.
Related
- Solver in Excel: How to Enable and Set It Up
- How to Set Up Solver in Excel
- Install Solver in Excel: A Step-by-Step Setup Guide
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Errors & fixes
- Excel Filter A to Z Not Working? Fix the SortIf Excel’s A to Z command is not sorting the records you expect, first click a cell in…
- Excel Keeps Not Responding When Copy Paste?If Excel keeps showing Not Responding when you copy and paste, first wait briefly, then press Esc once…
- Excel Group Columns Not Working? Fix the OutlineIf Excel will not group columns, select the columns you want, then choose Data > Outline > Group.…
- Why Is My IF Formula Not Working in Excel?If your Excel IF formula is not working, first check its syntax, the cell references, and whether the…
- Excel Solver Too Many Variable Cells? Fix the 200-Cell LimitExcel’s built-in Solver add-in allows up to 200 changing variable cells in a model. If your model needs…
- Excel Freeze Panes Wrong Selection? How to Fix ItIf Excel freezes the wrong rows or columns, first choose View > Freeze Panes > Unfreeze Panes, then…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.