If you really want addin to load when you open a specific book, why not load it into the Open event of the corresponding book
' code in the ThisWorkbook module Private Sub Workbook_Open() Dim wb As Workbook On Error Resume Next Set wb = Workbooks("myAddin.xla") If wb Is Nothing Then Set wb = Application.Workbooks.Open("c:\path\myAddin.xls") End If End Sub
Alternatively, any other workbook or Addin can embed code to interfere with Excel application-level events, such as Workbook.Open, and if the name of the newly opened work is something you are interested in doing, that is, loading Addin
source share