Hi everyone!
first of all thank you all for taking time to help me with my minor problem
I am currently intern employee in a big Oil & gas company. They are seeking for a excel document that can track changes when different employee's edits the worksheet. I have already inserted a VBA code that track changes in year, date and time.
Problem:
I want to track changes in specific data row in excel. Here i want to create a text box where the individual employee text his/hers name in and there after writing the person's name into a specific column (See screenshot. marked with yellow marker).
I cant quite solve this problem by myself. can you help me?
VBA code:
in advance thank you
// Naus
first of all thank you all for taking time to help me with my minor problem
I am currently intern employee in a big Oil & gas company. They are seeking for a excel document that can track changes when different employee's edits the worksheet. I have already inserted a VBA code that track changes in year, date and time.
Problem:
I want to track changes in specific data row in excel. Here i want to create a text box where the individual employee text his/hers name in and there after writing the person's name into a specific column (See screenshot. marked with yellow marker).
I cant quite solve this problem by myself. can you help me?
VBA code:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myTableRange As Range
Dim myDateTimeRange As Range
Dim myUpdatedRange As Range
If Target.CountLarge > 1 Then Exit Sub
Set myTableRange = Range("Sheet1!$A$2:$I$50")
If Intersect(Target, myTableRange) Is Nothing Then Exit Sub
Set myDateTimeRange = Range("J" & Target.Row)
Set myUpdatedRange = Range("K" & Target.Row)
Application.EnableEvents = False
If myDateTimeRange.Value = "" Then
myDateTimeRange.Value = Now
Else
myUpdatedRange = Now
End If
Application.EnableEvents = True
End Sub
in advance thank you
// Naus