Hello Excel/VBA Masters!
I got a table and with info that needs to be verified by employee. Next to each row of information there is Data Validation list (Verified / Not Verified). I got formulas down that show the username and time+date of verification, than i i lock the cells if there is any input in them, using this:
Problem is that, as it turns out both Username() and Now() functions are dynamic and show the current time + user.
Is it possible to get Static Username() + Now() in a cell(Or 2 separate cells, doesn't matter much), and than lock them?
Thank you for the help!
I got a table and with info that needs to be verified by employee. Next to each row of information there is Data Validation list (Verified / Not Verified). I got formulas down that show the username and time+date of verification, than i i lock the cells if there is any input in them, using this:
HTML:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim xRg As Range
On Error Resume Next
Set xRg = Intersect(Range("J2:L102"), Target)
If xRg Is Nothing Then Exit Sub
Target.Worksheet.Unprotect Password:="123"
xRg.Locked = True
Target.Worksheet.Protect Password:="123"
End Sub
Problem is that, as it turns out both Username() and Now() functions are dynamic and show the current time + user.
Is it possible to get Static Username() + Now() in a cell(Or 2 separate cells, doesn't matter much), and than lock them?
Thank you for the help!