How to track changes

Cameron1s

New Member
Joined
Jun 26, 2018
Messages
4
I have been trying to set one of my company's excel documents to be tracked. I have found it, I have set it up and it works really well. Only issue is, it makes the document [Shared]. The issue with this, is that the document is on a shared drive, we have tried to have it shared before but it just brakes or duplicates the document... ect. Is there a way that we can track the document (I.E. and changes to any cell, who, when, and to what.. ect) without having the document shared, even if that means that we are running off of another excel document.

Online I have found that you can do some coding that will allow you to do this, but I am not 100% sure.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
*EDIT*

The below is the code that I am using. Only issue is, excel is not picking up the usernames and date/time, it keeps Throwing up an error on the row highlighted below. We are using AD, so not sure if this might be the issue? Any help with this would be amazing!!

[FONT=&quot]Private Sub Workbook_Open()
Sheets(“Tracking”).Visible = xlSheetVeryHidden
End Sub[/FONT]

[FONT=&quot]Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
On Error Resume Next
If Sheets(“Tracking”).Visible = xlSheetVisible Then
Sheets(“Tracking”).Visible = xlSheetVeryHidden
Else
Sheets(“Tracking”).Visible = xlSheetVisible
End If
Target.Offset(1, 1).Select
End Sub[/FONT]

[FONT=&quot]Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If ActiveSheet.Name <> “logDetails” Then
Application.EnableEvents = False
Sheets(“Tracking”).Range(“A” & Rows.Count).End(xlUp).Offset(1, 0).Value = ActiveSheet.Name & “-” & Target.Address(0, 0)
Sheets(“Tracking”).Range(“A” & Rows.Count).End(xlUp).Offset(0, 1).Value = Target.Value
Sheets(“Tracking”).Range(“A” & Rows.Count).End(xlUp).Offset(0, 2).Value = Environ(“username”)
Sheets(“Tracking”).Range(“A” & Rows.Count).End(xlUp).Offset(0, 3).Value = Now
Sheets(“Tracking”).Columns(“A:D”).AutoFit
Application.EnableEvents = True
End If
End Sub[/FONT]
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top