Put the following in the relevant sheet module (e.g. if your input is in Sheet 1, then put the macro in that sheet module).
The macro is set for range A1:A20. Amend to suit.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target(1), Range("A1:A20")) Is Nothing Then _
Target(1).Value = Right(Target, 4)
End Sub
HTH
Mike


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks