I am scanning multiple "numerical only" barcodes across same row until "Z-xxx" is scanned, then auto return to original column +1 row. I want to include the 3 characters that are on the same scan but only after "Z-" in the new cell on the new row. Example: if I scan "Z-123" I want to return to original column and +1 row with cell value = "123".
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
If Len(.Value) And .Column > 2 Then
If .Value = "Z" Then
Cells(.Row + 1, 3).Select
Else
Cells(.Row, .Column + 1).Select
End If
End If
End With
End Sub