AddinUninstall Event Example

This example minimizes Microsoft Excel when the workbook is uninstalled as an add-in.

Private Sub Workbook_AddinUninstall()
    Application.WindowState = xlMinimized
End Sub