如果指定工作簿作为加载宏运行,则该值为 True。Boolean 类型,可读写。
如果将本属性设为 True,则指定工作簿将有下列特征:
本示例检查指定工作簿是否为加载宏,如果是则运行选定的代码。
If ThisWorkbook.IsAddin Then ' this code runs when the workbook is an add-in End If