i=1 Do Until (i = AddIns.Count) Or (AddIns(i).Name = "SOLVER.XLA") i=i+1 Loop If (AddIns(i).Name = "SOLVER.XLA") Then AddIns(i).Installed = True j=1 Do Until (j = Application.VBE.ActiveVBProject.References.Count) Or _ (Application.VBE.ActiveVBProject.References(j).Name = "SOLVER.xla") j=j+1 Loop If (Application.VBE.ActiveVBProject.References(j).Name <> "SOLVER.xla") Then Application.VBE.ActiveVBProject.References.AddFromFile AddIns(i).FullName End If Else MsgBox Prompt:="Solver not found this workbook will not WORK", Buttons:=vbCritical End If End Sub Private Sub Workbook_Open() benny End Sub