Share via

solver in EXCEL doesn't work anymore,

Henrik Franz 20 Reputation points
2025-10-18T11:39:15.7433333+00:00

In my Excel (Office 2024) since a couple of days solver can't uploaded anymore. Always the following failure message pops up: "Kompilierungsfehler in ausgeblendetem Modul: Solver Code“. This only happens on new Excel-files since this week. When open older files (e.g. from last week) solver is opening w/o any problems and just runs fine.

I've already acivated and deactivated the solver several times, have de-installed and installed office twice, but nothing is going to work.

I need this solver almost every day and I'm totally screwed now. Help would be highly appreciated.

Thanks,

Henrik

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments

Answer accepted by question author

Alex_T 6,385 Reputation points Microsoft External Staff Moderator
2025-10-18T17:07:30.7166667+00:00

Hello Henrik Franz,

Thank you for reaching out in Microsoft Q&A forum.

I understand you’re facing an issue where the Solver add-in in Excel 2024 fails to load for new files and shows a compilation error, even though it works fine with older files.

The issue occurs only with new files. Ensure they are saved as .xlsx or .xlsm (not .xls). If using macros, enable Developer Mode and allow macros.

Here’s how to fix it:

Go to File > Options > Add-ins > At the bottom, select Excel Add-ins and click Go > Ensure Solver Add-in is checked. If unchecked, check it and click OK.

You can also try to fix that by repairing VBA references: Press Alt + F11 to open the VBA editor > Go to Tools > References > Look for Solver in the list: if marked as MISSING, uncheck it. Browse to Solver.xlam (usually in C:\Program Files\Microsoft Office\root\OfficeXX\Library\SOLVER) > Re-add the reference and click OK.Try to close Excel > Navigate to the Add-ins folder and delete Solver.xlam > Reinstall via Office Repair by go to Control Panel > Programs > Microsoft Office > Repair.

Try to update Office to fix the issue: File > Account > Update Options > Update Now.

If this still fails, you can manually register Solver by running this in the VBA Immediate Window: Application.AddIns("Solver Add-in").Installed = True

------------------------------------------------------------------------------------------------------------ 

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

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

Answer recommended by moderator

Henrik Franz 20 Reputation points
2025-10-19T14:30:10.98+00:00

Dear Alex, thx for your help, I tried what u suggested unfortunately w/o success. Finally, I had to reinstall windows and afterwards it worked. Anyway, again thx and have a nice weekend. Henrik

Was this answer helpful?


0 additional answers

Sort by: Most helpful

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.