Sub Zyva(cel$)
Dim fld$, sdate$, wk As Worksheet, wb As Workbook
fld = "C:\Users\Bopcyl\Desktop\"
sdate = Format(VBA.Date, "dd-mm-yyyy") & "_" & Format(VBA.Time, "hh-mm-ss")
ActiveSheet.Copy
Set wk = ActiveSheet
Set wb = ActiveWorkbook
wk.PrintOut
With wb
With .VBProject.VBComponents(wk.CodeName).codemodule 'supprime le code
.DeleteLines 1, .CountOfLines
End With
.SaveAs fld & cel & "_" & sdate & ".xls"
.Close True
End With
End Sub