JEH105
New Member
- Joined
- Oct 11, 2019
- Messages
- 35
- Office Version
- 365
- Platform
- Windows
Hi everyone,
I'm not very experienced in VBA, but I found the following code in order to add time stamps to a workbook. However, I need the timestamps to be added to column D only. Currently, it applies the timestamps to ALL cells. Here is the code:
I appreciate any help you can provide!
I'm not very experienced in VBA, but I found the following code in order to add time stamps to a workbook. However, I need the timestamps to be added to column D only. Currently, it applies the timestamps to ALL cells. Here is the code:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
If Not IsEmpty(.Value) Then
' Jack Clears the comment.
.ClearComments
' Jack Creates the comment.
.AddComment (Application.UserName & " ; " & Date & " ;" & Time)
' Can have user name in top left by adding name between ""
.Comment.Visible = False
Else: .ClearComments
End If
End With
End Sub
I appreciate any help you can provide!