Syntax
Private Sub Workbook_AddinUninstall()
Enter
Code
End Sub
This event will run when this workbook is
uninstalled from Excel's Add-Ins.
Example
Private Sub Workbook_AddinUninstall()
For
Each Component In ActiveWorkbook.VBProject.VBComponents
If Component.Type = 3 Then
ActiveWorkbook.VBProject.VBComponents.Remove Component
End If
Next
Component
End Sub
Result
This example will remove any forms from
within the active workbook after this workbook is uninstalled from Excel's
Add-Ins.