Hello All,
I am having trouble with the falling code to go to last row. Here is my code so far:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LR As Long
LR = Range("J" & Rows.Count).End(xlUp).Row
If Target.Address(False, False) = "K21" Then
Application.EnableEvents = False
If Target.Value > 0 Then
Range("K22:K" & LR).FormulaR1C1 = Target.Value
Else
Range("K22:K" & LR).ClearContents
End If
Application.EnableEvents = True
End If
End Sub
Any help would be greatly appreciated.
Bookmarks