Solver Frustration

Tkeller

Board Regular
Joined
Jul 23, 2003
Messages
143
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hello,

I have been searching the forum here and other places and can not get this to work without giving me the dreaded "complie Error Can't find project or library". I am able to run Solver manually from within excel with no issues. In tolls/reference "solver" is clicked. Yet, I still get this error.

I am running EXCEL 10, if this matters. Here is my code.

Sub Solver()


SolverReset

SolverOk SetCell:=Range("Balance"), _
MaxMinVal:=3, _
ValueOf:=0, _
ByChange:=Range("Amount")
SolverSolve UserFinish:=True

End Sub
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try this:

In the VBE, Tools > References, untick Solver, then press Browse.

Paste this in the File name box

C:\Program Files\Microsoft Office\OFFICE10\Library\SOLVER<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

Change the file type dropdown to *.xls, *.xla, and pick SOLVER.XLA<o:p></o:p>
 
Upvote 0
Thanks. I don't have that exact same path, but did what you suggested and it is still giving me this error. This is what I did

1) I went into VBE and unchecked solver
2)Then I browsed and changed the file location to:
C:\Program files (x86)\Microsoft Office\Office14\Library\SOLVER
3) I changed the filedrop down to *.xla and selected the file solver.xla

All the above steps worked fine, but when I try to run I stil get this same error. Ugh!
 
Upvote 0
I understood you were using Excel 10, which is Excel XP (2002).

I don't have Excel 2010 to test.
 
Upvote 0
Sorry, my mistake. I am using the latest version of Excel. I understand you can not help, and appreciate your suggestios. Perhaps it has something to do with my opreationg system which is windows 7 64 bit?
 
Upvote 0
I solved my problem. For whatever reasons, if you have a MISSING file in your list of references, if you deselect this, then it miraculously works.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,282
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top