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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Reference with VBA

Status
Not open for further replies.

logratio

Programmer
May 13, 2003
8
CH
I have an Excel add-in that from Workbook_Open sets a reference to Solver and Workbook_Close removes the reference.

The weird thing is that the code shown below can't set the reference without preventing the small password form to pop up (the one that appears when trying to access a protected vba module in vbe).

Any idea how can I prevent that form from appearing?

AddIn_Name.References.AddFromFile ThisWorkbook.Path & Application.PathSeparator & "Solver.xla"

Pls reply to logratio@yahoo.com

Any help appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top