×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Reference to Solver in Excel 2007

Reference to Solver in Excel 2007

Reference to Solver in Excel 2007

(OP)
Hi, everybody! I have an excel 2003 vba project referencing to SOLVER automation library that does not work in excel 2007. I am looking for the new library name and cannot find, any tips? Thank you!

RE: Reference to Solver in Excel 2007

I don't have Excel 2007. In earlier versions, Solver is an add-in that is not installed taking the "default" installation. You have to do a custom installation and check the Solver add-in.

RE: Reference to Solver in Excel 2007

Add a reference to solver.xlam (under program files/microsoft office/office12/library/solver) in the VB editor.  You should then be able to record solver sessions with the macro recorder.

I just recorded the following simple session:

CODE

Sub Macro2()
'
' Macro2 Macro
'

'
    SolverOk SetCell:="$B$4", MaxMinVal:=3, ValueOf:="0", ByChange:="$B$3"
    SolverSolve
    Range("B6").Select
End Sub

Also search the VBA help for solver.

The following link may also be helpful for running solver VBA in different versions of Excel:

http://peltiertech.com/Excel/SolverVBA.html

Doug Jenkins
Interactive Design Services
www.interactiveds.com.au

RE: Reference to Solver in Excel 2007

(OP)
Doug,
thank you for your help!

Yakov

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources