In Which VBA references you are using we looked at how to get details about references active in a project. Let’s look at how to add those references to a project using code. This approach is needed in How to update modules automatically in VBA since references are dependencies that can be automatically updated in the same way as code. 

Here is code, with a couple of example references being added, downloadable here.

This is in fact the code needed to add the references needed by the bootstrap code in  How to update modules automatically in VBA.