When Excel shows an error in loading DLL, it means a required dynamic link library file is missing, corrupted, or incompatible — preventing Excel from starting or running add-ins properly. This is often caused by failed updates, third-party add-ins, or system file corruption. The fix usually involves resetting Excel’s startup settings, repairing the Office installation, or removing conflicting add-ins. No special tools are needed beyond your computer and administrative access.

What You'll Need

  • Administrative privileges on the computer
  • Internet connection (for repair or reinstallation)
  • Time to restart Excel and test after each step

Step-by-Step

  1. Close all instances of Excel and other Office programs. Use Task Manager (Ctrl+Shift+Esc) to ensure no background Excel processes are running — look for EXCEL.EXE under the Processes tab and end it if present.
  2. Press Windows + R to open the Run dialog, type excel /safe, then press Enter. This starts Excel in Safe Mode, which disables all add-ins and custom settings. If Excel opens successfully, the issue is caused by an add-in.
  3. In Safe Mode, go to File > Options > Add-Ins. At the bottom, select COM Add-ins from the Manage dropdown, then click Go. Uncheck every add-in listed, then click OK. Restart Excel normally (not in Safe Mode).
  4. If Excel still fails to load, navigate to the Excel startup folder. Press Windows + R, type %appdata%\Microsoft\Excel\XLSTART, then press Enter. Rename the folder to XLSTART_OLD. This clears any custom templates or DLL files placed there that may be causing conflicts.
  5. Open Windows Settings > Apps > Apps & features. Find Microsoft Office (or Microsoft 365 Apps), click the three dots next to it, and select Modify. Choose Quick Repair and click Repair. Wait for the process to complete, then restart your computer.
  6. If Quick Repair doesn’t fix it, repeat the Modify step but choose Online Repair instead. This downloads and reinstalls missing or corrupted files — it may take 10–20 minutes and requires an internet connection.
  7. If the error persists, manually delete the Excel registry keys that store add-in paths. Press Windows + R, type regedit, and press Enter. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins. Right-click the Addins folder and select Delete. Confirm the deletion. Restart Excel.
  8. As a last resort, uninstall and reinstall Microsoft Office. Go to Settings > Apps > Apps & features, uninstall Office completely, then download and reinstall it from office.com using your Microsoft account.

Common Mistakes

  • Skipping Safe Mode — trying to fix DLL errors without first disabling add-ins can lead to wasted effort, since most issues originate there.
  • Deleting system DLL files manually — never download or replace system DLLs from third-party websites; they often contain malware or incompatible versions.
  • Ignoring Office updates — failing to install the latest Office updates can leave Excel vulnerable to known DLL compatibility issues.
  • Not restarting after repairs — some changes only take effect after a full system reboot, not just closing and reopening Excel.
  • Using outdated third-party add-ins — older add-ins (especially from 2010–2015) are frequently incompatible with newer Excel versions and should be updated or removed.

Tips

  • After fixing the issue, avoid installing add-ins from untrusted sources. Stick to those distributed through Microsoft AppSource or official vendor websites.
  • Use the Excel /safe command regularly if you suspect an add-in is causing instability — it’s a quick diagnostic tool.
  • Keep a backup of your XLSTART folder before renaming it. If you had custom templates, you can restore them later from the old folder.
  • Check Microsoft’s official support page for your Office version — they often list known DLL-related bugs and patches.
  • If you use Excel for work or critical tasks, enable automatic updates in Office Settings to prevent future compatibility issues.

Troubleshooting

If Excel still fails after following all steps, check the Windows Event Viewer for detailed error logs. Press Windows + R, type eventvwr.msc, and press Enter. Navigate to Windows Logs > Application. Look for errors from the source Excel or COM Add-in. Note the DLL name mentioned — it may reveal the exact problematic file. Search for that DLL name online with your Excel version (e.g., "Excel 2021 error loading xll.dll"). If the error references a specific third-party tool (like an old accounting plugin or Bloomberg add-in), contact its vendor for an updated version. If you recently upgraded Windows or Office, try rolling back the update temporarily to confirm compatibility. If all else fails, create a new Windows user profile — sometimes the issue is tied to corrupt user-specific settings. Log in with a new account and test Excel there.

Frequently Asked Questions

Why does Excel say "error in loading DLL" only when I open certain files?

This usually means the file contains embedded add-ins or macros that reference a missing or renamed DLL. Try opening the file in Safe Mode to isolate the issue.

Can a virus cause this error?

Yes. Malware sometimes corrupts or replaces system DLLs. Run a full scan using Windows Defender or a trusted antivirus tool before proceeding with repair steps.

Does this happen on Mac?

No. The DLL error is specific to Windows. Mac versions of Excel use different system libraries and do not encounter this exact error message.

Why did this start after a Windows update?

Windows updates can change system file versions or registry permissions that Excel relies on. An Office repair or update usually resolves it.

Can I fix this without reinstalling Office?

Yes. In most cases, using Safe Mode, clearing the XLSTART folder, and running a Quick Repair will fix the issue without full reinstallation.

Is it safe to delete registry keys?

Yes, if you follow the exact path mentioned: HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins. This only removes user-specific add-in references, not core Excel functions. Always back up the registry before making changes if unsure.