Hi
I hope you can help me with a spreadsheet.
I have a spreadsheet with 3 tabs (AY21-22, AY22-23 and log[hidden]) that I need to track changes on.
I have found
which works to log the user and when they access.
I want to also log which cells are altered even if it is just which cells are edited. Is this possible?
I have tried googling different ways to final a solution but unable to find anything (not even on youtube)
So it may not even be possible but if a VBA master can tell me that it isnt possible i would be soo happy and relieved.
Regards
Matthew
I hope you can help me with a spreadsheet.
I have a spreadsheet with 3 tabs (AY21-22, AY22-23 and log[hidden]) that I need to track changes on.
I have found
VBA Code:
Private Sub workbook_beforesave(ByVal SaveAsUI As Boolean, cancel As Boolean)
Dim wbLog As Worksheet
Dim iLastRow As Integer
Set wbLog = Sheets("log")
iLastRow = wbLog.Cells(wbLog.Rows.Count, "A").End(xlUp).Row + 1
wbLog.Cells(iLastRow, 1).Value = Environ("username")
wbLog.Cells(iLastRow, 2).Value = Now
End Sub
which works to log the user and when they access.
I want to also log which cells are altered even if it is just which cells are edited. Is this possible?
I have tried googling different ways to final a solution but unable to find anything (not even on youtube)
So it may not even be possible but if a VBA master can tell me that it isnt possible i would be soo happy and relieved.
Regards
Matthew