Syntax

expression.IsAddin

expression A variable that represents a Workbook object.

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.

Visual Basic for Applications
If ThisWorkbook.IsAddin Then ' this code runs when the workbook is an add-in End If
is addin Is Addin Property IsAddin IsAddin Property Set switch indicating addin status for workbook? Workbook being run as an addin?

See also: