1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
Dim activ_cel As String, est_changer As Boolean, quand As String, new_file As String
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim l As Long
With Rapport
l = .Range("a2").End(xlDown).Row
.Rows(l).Insert ' insère une ligne de séparation entre les séances utilisateur
.Cells(2, 3) = Now
End With
End Sub
Private Sub Workbook_Open()
With Rapport
.Rows(2).Insert
.Cells(2, 1) = Application.UserName
.Cells(2, 2) = Now
.Rows(3).Insert
End With
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
End Sub
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
End Sub
'ici on pourra traiter l'évènement en analysant un peu l'objet qui a été changé.
'l'idée c'est que si l'objet n'atteint pas un certain nombre de cellules,
'on l'enregistre sur la ligne correspondante, sinon on crée un fichier pour l'enregistrer. Dans le cas ou c'est une cellule, tout simplement
Private Sub Statuts(cible As Range, colonne As Integer)
Dim cl As Range, r As Range
Dim rf As Long, rc As Long, i As Long, n As Long
Dim vide As Boolean, e As Boolean, f As String, d As String, T
End Sub
'ben c'est pas aussi simple que je le croyais! pas le temps de tester... |
Partager