The environment calls this method when it unloads the add-in.
Syntax
Sub OnDisconnection (ByVal RemoveMode As vbext_DisconnectMode, Custom() As Variant) As Object
This syntax has these parts:
Part | Description |
RemoveMode | An enumerated type indicating the disconnection mode: HOST_SHUTDOWN, USER_SHUTDOWN |
Custom | Reserved for future use. |
Remarks
Add-ins must implement this method.