Histórico
Resuelto
juer31
Mensajes publicados
120
Estado
Miembro
-
michel_m Mensajes publicados 18903 Fecha de registro Estado Colaborador Última intervención -
michel_m Mensajes publicados 18903 Fecha de registro Estado Colaborador Última intervención -
Bonjour,
Tengo este código que guarda un historial de todas mis celdas que cambian, pero me gustaría que solo registre la columna L.
¿Alguien puede ayudarme?
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim col As Range
Set col = Columns("L")
If Not Intersect(Target, col) Is Nothing Then
Target.Offset(1, 0).Select
celaddress = Target.Address
colonne = Target.Column
UserForm1.Show
Target.Offset(1, 0).Select
End If
End Sub
Sub test_UserName()
Dim Nom As String
Nom = Environ("USERNAME")
MsgBox Nom
End Sub
Private Sub WorkSheet_Change(ByVal Target As Range)
If Target.Count <> 1 Then Exit Sub
If Target = "" Then Exit Sub
r = Target.Address & ")" & Date & " - " & Target.Value & " - " & Environ("username")
c = Target.Column
With Worksheets("historiques")
dl = .Cells(Rows.Count, c).End(xlUp).Row
If .Cells(dl, c) <> r Then .Cells(dl + 1, c) = r
End With
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells(1, 9).Value = ActiveCell.Value
End Sub
Tengo este código que guarda un historial de todas mis celdas que cambian, pero me gustaría que solo registre la columna L.
¿Alguien puede ayudarme?
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim col As Range
Set col = Columns("L")
If Not Intersect(Target, col) Is Nothing Then
Target.Offset(1, 0).Select
celaddress = Target.Address
colonne = Target.Column
UserForm1.Show
Target.Offset(1, 0).Select
End If
End Sub
Sub test_UserName()
Dim Nom As String
Nom = Environ("USERNAME")
MsgBox Nom
End Sub
Private Sub WorkSheet_Change(ByVal Target As Range)
If Target.Count <> 1 Then Exit Sub
If Target = "" Then Exit Sub
r = Target.Address & ")" & Date & " - " & Target.Value & " - " & Environ("username")
c = Target.Column
With Worksheets("historiques")
dl = .Cells(Rows.Count, c).End(xlUp).Row
If .Cells(dl, c) <> r Then .Cells(dl + 1, c) = r
End With
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells(1, 9).Value = ActiveCell.Value
End Sub
1 respuesta
Hola
Un ejemplo con 2 libros de Excel: Dissident.xls donde se realizan cambios en una columna (L) y se registran (quién, qué, antes-después, cuándo, fecha-hora)
en el libro Bigbrother.xls
https://mon-partage.fr/f/xTSWzClK/
cuidado con extraer el zip y no abrirlo
si la encuentro (..) y si te interesa, podemos registrar en un archivo de texto
--
Michel
Un ejemplo con 2 libros de Excel: Dissident.xls donde se realizan cambios en una columna (L) y se registran (quién, qué, antes-después, cuándo, fecha-hora)
en el libro Bigbrother.xls
https://mon-partage.fr/f/xTSWzClK/
cuidado con extraer el zip y no abrirlo
si la encuentro (..) y si te interesa, podemos registrar en un archivo de texto
--
Michel