Hello,
I have a UDF that is supposed to track changes for a defined range of cells. So if anything within that range changes record who made the change and when.
The problem I am running into is that whenever a new user opens the file it asks them to Enable Content which, when they do Enable Content, sends a "push" through the sheet and every UDF is refreshed and overwrites all of the previous tracked info.
I tried having an Worksheet open event set calculation to manual, which works for the enable content button, but when you set the calculation to automatic the "push" happens again.
I would much rather use an elegant UDF than a hefty worksheet change macro. Any help would be appreciated! I'm in a 32-bit 2016.
Thank you!!
I have a UDF that is supposed to track changes for a defined range of cells. So if anything within that range changes record who made the change and when.
The problem I am running into is that whenever a new user opens the file it asks them to Enable Content which, when they do Enable Content, sends a "push" through the sheet and every UDF is refreshed and overwrites all of the previous tracked info.
Code:
Public Function TRACKING(Variable_Range) As String
If Not Application.Intersect(Variable_Range, Variable_Range) Is Nothing Then
TRACKING = Environ$("UserName") & ", " & Date & ", " & Time
End If
End Function
I tried having an Worksheet open event set calculation to manual, which works for the enable content button, but when you set the calculation to automatic the "push" happens again.
I would much rather use an elegant UDF than a hefty worksheet change macro. Any help would be appreciated! I'm in a 32-bit 2016.
Thank you!!