Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

reference solver.dll by code?

Status
Not open for further replies.

kristogi

Chemical
Nov 21, 2004
1
How can I write a code for adding solver reference ?
I know that I can do it manually by clicking on it in Tools->Reference but I want to it automatically by writing code. Can I?
 
Replies continue below

Recommended for you


Usethe AddFromFile method to load the reference. For example on my WinXP system with Office 2003, the following statement will load SOLVER on the currently active excel project.

Application.VBE.ActiveVBProject.References.AddFromFile("C:\Program Files\Microsoft Office\OFFICE11\Library\SOLVER\SOLVER.XLA")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor