Workbook.IsAddin Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the workbook is running as an add-in.
public:
property bool IsAddin { bool get(); void set(bool value); };
public bool IsAddin { get; set; }
member this.IsAddin : bool with get, set
Public Property IsAddin As Boolean
Property Value
true
if the workbook is running as an add-in; otherwise, false
.
Remarks
When you set this property to true
, the workbook has the following characteristics:
You are not prompted to save the workbook if changes are made while the workbook is open.
The workbook window is not visible.
Any macros in the workbook are not visible in the Macro dialog box (displayed by pointing to Macro on the Tools menu and clicking Macros).
Macros in the workbook can still be run from the Macro dialog box even though they are not visible. In addition, macro names do not need to be qualified with the workbook name.
Holding down the SHIFT key when you open the workbook has no effect.