vikaschandra1993
New Member
Dear All,
need urgent help, suppose I have a column(A) and whenever I enter a non -blank Value in the column(A1, A2 ...), the date must be captured in next column(B1, B2 ...).
Please note that this date must be locked and should not change when I refresh my file tomorrow or day after. For eg: If I made the entry on 1st Aug and do not change the value of the cell, my next column should continue showing 1st Aug whichever date I open the file. I tried below VBA Code but whenever I open the file, the column shows current date not the date at which I input the data. Please help
need urgent help, suppose I have a column(A) and whenever I enter a non -blank Value in the column(A1, A2 ...), the date must be captured in next column(B1, B2 ...).
Please note that this date must be locked and should not change when I refresh my file tomorrow or day after. For eg: If I made the entry on 1st Aug and do not change the value of the cell, my next column should continue showing 1st Aug whichever date I open the file. I tried below VBA Code but whenever I open the file, the column shows current date not the date at which I input the data. Please help
Code:
Function Timestamp(Reference As Range)
If Reference.Value <> "" Then
Timestamp = Format(Now, "dd-mm-yy")
Else
Timestamp = ""
End If
End Function
Last edited by a moderator: