Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to track the date and username for data changed. However, I want to
only associate the date and username with the change for each row. The fixed column for the date and username are "P" and "Q" (Columns 16 and 17). I am using the following VBA script (from Mr Bernie Deitrick) to start off with for the date and time of change, but am unsure of how to modify it so that the data stays in the correct column and row. Also, need help on getting the username input into column "Q". Private Sub Worksheet_Change(ByVal Target As Range) Dim myCell As Range If Not Intersect(Target, Range("E1:L1000")) Is Nothing Then Application.EnableEvents = False For Each myCell In Intersect(Target, Range("E1:L1000")) myCell.Offset(0, 4).Value = "Cell " & _ myCell.Address(False, False) & " was changed " & _ Format(Now(), "mmm dd, yyyy at hh:mm:ss") Next myCell Application.EnableEvents = True End If End Sub Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I format the A/ B Column to be fixed like numeric column | Excel Worksheet Functions | |||
How do I format the A/ B Column to be fixed like numeric column | Excel Worksheet Functions | |||
How do I format the A/ B Column to be fixed like numeric column | Excel Worksheet Functions | |||
keep column fixed | Excel Discussion (Misc queries) | |||
Offset from a variable column to a fixed column | Excel Programming |