Private Sub Workbook_BeforeClose(Cancel As Boolean)
If TextBox1.Visible = True Then
With TextBox1
.Visible = False
End With
Sheets("Appels").Unprotect Password:=""
With Sheets("Appels").Range("m1").Interior
.ThemeColor = xlThemeColorDark1
End With
Sheets("Appels").Protect Password:="", DrawingObjects:=True, Contents:=True, Scenarios:=True
End If
ActiveWorkbook.Save
ActiveWorkbook.RunAutoMacros Which:=xlAutoClose
End Sub