IsAddin Property 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