Workbook.IsAddin (Excel)

True if the workbook is running as an add-in.

When you set this property to True, the workbook has the following characteristics:


ActiveWorkbook.IsAddin = True