Sub Fermer_Fichier_Excel()
Dim fichier$, xlApp As Object
fichier = "TOTO.xlsx" 'nom à adapter
Set xlApp = GetObject(, "Excel.Application")
With xlApp.Workbooks(fichier)
.Saved = True
If xlApp.Workbooks.Count = 1 Then xlApp.Quit Else .Close
End With
End Sub