Perhaps an event macro. Right click on the sheet tab, select view code, and enter the code
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo errhand
Application.EnableEvents = False
If Target.Cells.Count = 1 And Target.Column = 1 Then
vall = Val(Target.Value)
strr = WorksheetFunction.Substitute(Target.Value, vall, "")
Target.Value = Format(vall, "000") & strr
End If
errhand:
Application.EnableEvents = True
End Sub
Now type something into a cell in column A.
This is premised on the number being the first part of the string only.
Bookmarks