I've searched the board and got close to a solution but not quite...
I have a WS with items and their associated prices:
small sub 3.99 in 2 adjacent cells
If I change the price to 4.99 I'm looking to record the changes onto a another Log Sheet with the entry
item old new
small sub 3.99 4.99
I've found this so far:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim strAddress As String
Dim val
Dim dtmTime As Date
Dim Rw As Long
dtmTime = Now()
val = Target.Value
strAddress = Target.Address
Rw = Sheets("Log Sheet").Range("A" & Rows.Count).End(xlUp).Row + 1
With Sheets("Log Sheet")
.Cells(Rw, 1) = strAddress
.Cells(Rw, 2) = val
.Cells(Rw, 3) = dtmTime
End With
End Sub
Thanks in advance for any help.
Louis
I have a WS with items and their associated prices:
small sub 3.99 in 2 adjacent cells
If I change the price to 4.99 I'm looking to record the changes onto a another Log Sheet with the entry
item old new
small sub 3.99 4.99
I've found this so far:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim strAddress As String
Dim val
Dim dtmTime As Date
Dim Rw As Long
dtmTime = Now()
val = Target.Value
strAddress = Target.Address
Rw = Sheets("Log Sheet").Range("A" & Rows.Count).End(xlUp).Row + 1
With Sheets("Log Sheet")
.Cells(Rw, 1) = strAddress
.Cells(Rw, 2) = val
.Cells(Rw, 3) = dtmTime
End With
End Sub
Thanks in advance for any help.
Louis