SublimizeD
New Member
- Joined
- Jul 27, 2018
- Messages
- 4
Hello all!
Im having a hard time with my VBA.
Im attempting to fill column M with who modified the corresponding row. I want the code to populate all the way down. This is my current code.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rngCell As Range
If Intersect(Target, Range("A2:A250")) Is Nothing Then Exit Sub
Application.EnableEvents = False
For Each rngCell In Target.Cells
rngCell = UCase(rngCell)
Next
End If
If Range("A2:A250").Value = "" Then
Exit Sub
Next
Range("M2:M250").Value = "Revised at: " & Now() & " by " & Application.UserName
Application.EnableEvents = True
End Sub
Im having a hard time with my VBA.
Im attempting to fill column M with who modified the corresponding row. I want the code to populate all the way down. This is my current code.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rngCell As Range
If Intersect(Target, Range("A2:A250")) Is Nothing Then Exit Sub
Application.EnableEvents = False
For Each rngCell In Target.Cells
rngCell = UCase(rngCell)
Next
End If
If Range("A2:A250").Value = "" Then
Exit Sub
Next
Range("M2:M250").Value = "Revised at: " & Now() & " by " & Application.UserName
Application.EnableEvents = True
End Sub