View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
programmernovice[_2_] programmernovice[_2_] is offline
external usenet poster
 
Posts: 61
Default Problem loading Solver

On Sunday, December 15, 2019 at 3:54:24 PM UTC-6, Peter T wrote:
"programmernovice" wrote in message

I use Solver with Excel 2007. After starting Excel, Solver will not work..
Both boxes for Solver Addins (yes, there are 2) are checked. The only
solution I have found is to uncheck both boxes, close the addins list,
opening it again and check both boxes. After closing, Solver works fine.

I have tried to write VBA scripts to automate this but none have worked.
Only the manual procedure indicated will do the trick.

==========================

Pretty sure you shouldn't have two Solver addins, only solver.xlam; there's
also a helper Solver32.dll. If you've got two ticked what are their
respective filenames.., can't be the same and both loaded.

If the solver addin was unpacked when you installed Office it should be in
the Library folder, a subfolder of Office 2007 in program files. Bundled
addin files in this folder automatically exist in the addins collection, and
with code should be able to un/install it (ie ticked to load on startup)
Dim ad as addin
Set ad = Application.Addins("Solver Add-in")
ad.Installed = True

Might be worth looking in -
HKCU\\Software\Microsoft\Office\12.0\Excel\Options
and and look for any conflicts, two OPEN keys with solver perhaps

Peter T


Thanks Peter. I appear to have a conflict between the XLA and XLAM versions of the Solver file. For many years I used XLA with E 2003. Now after opening E 2007, I get messages indicating it cannot find XLA. Per your suggestion,I did find XLA listed (as well as XLAM)and I removed Solver.XLA from the registry. In the Addins file under Users\...\Roaming\Microsoft\Addins I located Solver.XLAM.

After all this, Excel is still looking for Solver.XLA. Can you please suggest steps to permanently "divorce" Excel 2007 from Solver.XLA.

Thank you very much for your help, this is a really nagging problem!