Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Nov 21, 2004
Messages
1
Location
GR
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?
 

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

Back
Top