Hi there,
I have added a worksheet_change macro to the sheet1 in vb, the code determines the last row within sheet1, then loops through the rows 2 to 100, for example, determines the stage inputted in column A and date stamps the appropriate column.
Hope this helps.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LastRow As Long
If WorksheetFunction.CountA(Cells) > 0 Then
'Search for any entry, by searching backwards by Rows.
LastRow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
End If
For n = 2 To LastRow
If Target.Address = ActiveSheet.Cells(n, 1).Address And ActiveSheet.Cells(n, 1).Value <> 0 Then
x = ActiveSheet.Cells(n, 1).Value + 1
ActiveSheet.Cells(n, x) = Format(Now(), "dd/mm/yyyy")
End If
Next n
End Sub
Test File.xlsm
Bookmarks