Bonjour,
Vous pouvez essayer avec la fonction TEXTE, si j'ai bien compris :
=TEXTE(A1;"0000-000-000-00")
Ou alors avec ce code dans le module de la feuille en question :
private sub worksheet_change(byval target as range)
if target.address = "$A$1" then
if isnumeric(target) and len(target) = 12 then
application.enableevents = false
target = application.text(target, "0000-000-000-00")
application.enableevents = true
end if
end if
end sub
Le changement en cellule A1 (à adapter ensuite) déclenchera le changement de valeur...
Cdlt,