VBA Project References

Paul Sansom

Board Regular
Joined
Jan 28, 2013
Messages
178
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
http://www.sansom.co.uk/reference.png

Hi

Can anyone advise me how to remove a reference? This ref is attachedto a specific workbook.
I have tried removing all references to solver in both VBA modules and throughout the workbook and I have removed the SOLVER.XLAM add-in, but the reference persists???? See Reference in image at URL.

Follow up and related question . Is the SOLVER.XLAM add-in in Excel2016 a 3rd party add-in. It seems to be different to the solver being used bymy workbook users in Excel2013?

Any advice or guidance gratefully received... Paul



 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
With the relevant project selected in project explorer in the VBE, Tools-References should show you the list of refererences set for that workbook. Does Solver appear as a checked item?
 
Upvote 0
Hi Rory yes it was checked. unselecting this removed the reference :-) many thanks
what i the effect of removing this ref on a workbook that requires solver? Can I still call this add-in from VBA as
Code:
Sub SolverSwithOn()
    
    On Error GoTo Error
    Set Solv = Addins("Solver Add-In")
    If Solv.Installed = False Then
        Addins("Solver Add-in").Installed = True
    End If
    
Error:
    Exit Sub
 
End Sub
 
Upvote 0
That just loads the add-in, so doesn't require a reference. You only need the reference to directly call a routine in the Solver add-in, without using Run.
 
Upvote 0
Excellent news. As very often, excellent and rapid advise. Many thanks very much appreciated.
Paul
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,847
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top