Installed 属性

       

如果安装了此加载宏,则该值为 TrueBoolean 类型,可读写。

说明

将此属性设为 True 将安装指定加载宏,并调用 Auto_Add 函数。将此属性设为 False 则移去指定加载宏,并调用 Auto_Remove 函数。

示例

本示例用一个消息框显示 Solver 加载宏的安装状态。

Set a = AddIns("Solver Add-In")
If a.Installed = True Then
    MsgBox "The Solver add-in is installed"
Else
    MsgBox "The Solver add-in is not installed"
End If