VBIDE require reference 'Microsoft Visual Basic for Application Extensibility"
=> Application.References.AddFromGuid "{0002E157-0000-0000-C000-000000000046}", 5, 3
Or you can use late binding: Dim AddInRef As Object
Do you also have similar code for Access and COM add-ins?
Dim ComAddIn As Office.ComAddIn
For Each ComAddIn In Access.COMAddIns
With ComAddIn
Debug.Print .ProgId, .Description, .Connect
' .Connect ... enabled/disabled in COM-add-in list (Access Options)
End With
Next
I am not aware of any property for Access add-ins.
These are also never loaded at startup, but are only loaded on the 1st call. After that they are available as VBProject.