IsAddin Property

True if the workbook is running as an add-in. Read/write Boolean.

Remarks

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

Example

This example runs a section of code if the workbook is an add-in.

If ThisWorkbook.IsAddin Then
    ' this code runs when the workbook is an add-in
End If