Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
NomUsager = Application.UserName
With WorkSheets(Nom de la feuille cachée)
DerLigne=.Range("A65536").End(xlUp).Row+1 [SIZE=1][COLOR=Green]'on détecte la derniere ligne vide[/COLOR][/SIZE]
.Cells(Derligne,1)= Format(Date,"dd/mm/yyyy") [SIZE=1][COLOR=Green]'ici on mets la date du Jour[/COLOR][/SIZE]
.Cells(Derligne,2)= NomUsager [SIZE=1][COLOR=Green] 'ici le Nom du User[/COLOR][/SIZE]
.Cells(Derligne,1)= ActiveWorkBook.Name [SIZE=1]'[/SIZE][SIZE=1][COLOR=Green]le Nom du Classeur[/COLOR][/SIZE]
End with
End Sub