Hi,
Can you please help me on the below?
I have data starts from Column B
everyday one or the other people will open the file and make changes on the data.
I would like to track all the changes made in a row is captured in column A like below
say if any changes is done in row 4 ( B4 is changed from 100 to 200 and
G4 is changed from Yes to No
as soon as these changes are happened,
in Cell A4 i should get like
Cell B4 - value $100 has been changed to $200 on 22-Oct-2010 and time by John and
Cell G4 - value Yes has been changed to No on 22-Oct-2010 and time by Jim
If 20 changes are done in day everything has to be caputured
Note: The workbook is not shared
and I have 2000 rows of data in a sheet.
thanks for your help..
Cross Post:http://www.mrexcel.com/forum/showthr...67#post2485867
How about capturing the changes and populating a cell comment box?
Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) Dim sUser As String, sComment As String, lCol As Long If Target.Cells.Count > 1 Then Exit Sub Select Case Target.Column Case 2: lCol = 27 Case 7: lCol = 28 End Select If Target.Column = 2 Or Target.Column = 7 Then sUser = Environ("Username") sComment = vbCrLf & Date & ": Changed by " & sUser & " from " & Cells(Target.Row, lCol) & " to " & Target.Value & Chr(10) With Target If Not .Comment Is Nothing Then .Comment.Text Text:=.Comment.Text & sComment Else .AddComment Text:=sComment End If .Comment.Shape.TextFrame.AutoSize = True End With End If End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Cells.Count > 1 Then Exit Sub Application.ScreenUpdating = False Select Case Target.Column Case 2 Range("AA" & Target.Row) = Target.Value Case 7 Range("AB" & Target.Row) = Target.Value End Select Application.ScreenUpdating = True End Sub
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
Hi Thanks for your help,
But the code is providing the comment only based on com B & G however it was an example.
exept A changes can happen anywhere in the row.
so what ever the changes happenses in row 2 should be captutre & listed one after the other in Cell A2
thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks