Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Range("J1:J10"), Target) Is Nothing Then ' expend range if you need
Target.Offset(, -4) = Target.Value
End If
End Sub
This doesn't seem to work, thank you however.....let me clarify, I put text in each cell in the J column and when I hit enter, i want it to offset the the left 4 cells in the same row.Hi
I'm not sure if you mean this(I prefer use select cell)
VBA Code:Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.CountLarge > 1 Then Exit Sub If Not Intersect(Range("J1:J10"), Target) Is Nothing Then ' expend range if you need Target.Offset(, -4) = Target.Value End If End Sub
you should be more specifically what happens for you.This doesn't seem to work
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Range("J1:J10"), Target) Is Nothing Then
Target.Offset(, -4).Value = Target.Value
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Range("J1:J10"), Target) Is Nothing Then
Target.Offset(, -4).Select
End If
End Sub