How get values of two cells and paste in the same column?
i need get value whne enter in M4 and paste (last cells in column S) S4, case enter value in M5 paste (last cells in column S) S5
in so on
I try it..but doen's work
i need get value whne enter in M4 and paste (last cells in column S) S4, case enter value in M5 paste (last cells in column S) S5
in so on
I try it..but doen's work
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("M4:M5")) Is Nothing Then
With Target(0, 6).Offset(1)
.Value = Target.Value
.EntireColumn.AutoFit
End With
End If
End Sub