kingnitwit
New Member
- Joined
- Apr 25, 2018
- Messages
- 4
Hi,
I'm quite new to VBA and having trouble figuring out how to make this work.
I have an excel sheet with information linked to specific accounts. When someone modifies the information in that specific row, I want the cells in a specific column to show who has last modified that specific row/cell range and on which date and time.
I have found the following code here which creates a function for date and time, but no name:
I then found this code here, which provides me with Date, Time and user, but only for the entire sheet, rather than a specific range.
Could you help me out with a code that will provide me with date, time and user per a certain range/row?
Any help would be greatly appreciated
I'm quite new to VBA and having trouble figuring out how to make this work.
I have an excel sheet with information linked to specific accounts. When someone modifies the information in that specific row, I want the cells in a specific column to show who has last modified that specific row/cell range and on which date and time.
I have found the following code here which creates a function for date and time, but no name:
Code:
Public Function Lastmodified(c As Range)
Lastmodified = Now()
End Function
I then found this code here, which provides me with Date, Time and user, but only for the entire sheet, rather than a specific range.
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Sh.Range("T56") = "Revised: " & Format(Date, "mm/dd/yyyy") & " at " & Format(Time, "hh:mm AMPM") & " by " & Application.UserName
End Sub
Could you help me out with a code that will provide me with date, time and user per a certain range/row?
Any help would be greatly appreciated