HI
I have the folowing code that creates a log of changes made ( i have a linked table so cannot use track changes)
This works fine but the problem I only realy need to log changes to a specific range (eg B71-O79 and B84- O90)
How could i change the code to reflect this
I have the folowing code that creates a log of changes made ( i have a linked table so cannot use track changes)
VBA Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If ActiveSheet.Name <> "Log" Then
Application.EnableEvents = False
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Value = ActiveSheet.Name & " - " & Target.Address(0, 0)
Sheets("Log").Range("A" & Rows.Count).End(xlUp).Offset(0, 1).Value = Target.Value
Application.EnableEvents = True
End If
End Sub
This works fine but the problem I only realy need to log changes to a specific range (eg B71-O79 and B84- O90)
How could i change the code to reflect this