WaterSkiExcel
New Member
- Joined
- Mar 11, 2014
- Messages
- 9
I'm new to the VBA side of excel. I need to auto-populate the "date" and "username" into columns A and B when a value is typed into column G. I'm able to do this for one line (something is typed in G13, then A13 and B13 populate) using this code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$G$13" Then
Range("A13").Value = Date
Range("B13").Value = UCase(Application.UserName)
End If
End Sub
How do I make this loop so anytime a value is typed into a cell in column G the corresponding cells in column A and B auto-populate?
Thanks
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$G$13" Then
Range("A13").Value = Date
Range("B13").Value = UCase(Application.UserName)
End If
End Sub
How do I make this loop so anytime a value is typed into a cell in column G the corresponding cells in column A and B auto-populate?
Thanks