1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Dim Ws As Excel.Worksheet
Set Ws = ThisWorkbook.Worksheets("Feuil1")
Dim Service As String
Services = Ws.Range("F5").Value
Dim Path As String
Path = "M:\Ouistreham\OUISTREHAM - HOTEL\Florian\Caisse\"
Path = Path & Format(Date, "dd/mm/yyyy") & " - " & Service & ".xlsm"
Dim DisplayAlerts As Boolean
DisplayAlerts = Application.DisplayAlerts
Application.DisplayAlerts = False
ThisWorkbook.SaveAs Path, xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
Application.DisplayAlerts = DisplayAlerts
MsgBox "La caisse est bien enregistrée", vbOKOnly Or vbInformation, "Enregistrement terminé" |
Partager