Private Sub Worksheet_Change(ByVal Target As Range)
With Target(1)
If .Column = 1 And VarType(.Value) = vbString Then
On Error GoTo Oops
Application.EnableEvents = False
.Value = Format(Replace(.Value, " ", ""), """00""@@ @@@ @@@ @@ @@@@ @@@@ @@@")
Oops:
Application.EnableEvents = True
End If
End With
End Sub
Bookmarks