WorkbookAddinUninstall Event Example
This example minimizes the Microsoft Excel window when a workbook is installed as an add-in.
Private Sub App_WorkbookAddinUninstall(ByVal Wb As Workbook) Application.WindowState = xlMinimized End Sub