Document.SetMissingAddInBehavior Method
Parent Object: DocumentDescription
Method that sets the commands to be disabled when a particular AddIn is absent.
Syntax
Document.SetMissingAddInBehavior( ClientId As String, DisabledCommandTypesEnum As CommandTypesEnum, [DisabledCommands] As Variant )Parameters
Name | Type | Description |
ClientId | String | Specifies the ClassId of the AddIn. When the AddIn corresponding to this ClientId is absent (unloaded or uninstalled), the commands specified are disabled. |
DisabledCommandTypesEnum | CommandTypesEnum | CommandTypesEnum that specifies the classifications of the commands to be disabled. |
DisabledCommands | Variant | Optional input ObjectCollection that specifies the commands to be disabled. The ObjectCollection must contain only ControlDefinition objects. This is an optional argument whose default value is null. |