Workbook.IsAddin Property (2007 System)
Gets or sets a value that indicates whether the workbook is running as an add-in.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property IsAddin As Boolean
'Usage
Dim instance As Workbook
Dim value As Boolean
value = instance.IsAddin
instance.IsAddin = value
[BrowsableAttribute(false)]
public bool IsAddin { get; set; }
[BrowsableAttribute(false)]
public:
property bool IsAddin {
bool get ();
void set (bool value);
}
public function get IsAddin () : boolean
public function set IsAddin (value : boolean)
Property Value
Type: System.Boolean
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.