AddFromGUID Method Example

The following example uses the AddFromGUID method to add a reference to the current project, identifying the reference using the globally unique ID value of the Reference object.

Application.VBE.ActiveVBProject.References.AddFromGuid("{000204EF-0000-0000-C000-000000000046}", 5, 0)