Sub test()
ititelephonemaison Selection
End Sub
Function ititelephonemaison(rng As Range)
'format 0033-1-23456789
For Each cell In rng.Cells: cell.Value = Format("0033" & Val(Replace(Replace(cell.Value, " ", ""), ".", "")), "@@@@""-""@""-""@@@@@@@@"): Next
End Function
Sub test2()
ititelephonemobile Selection
End Sub
Function ititelephonemobile(rng As Range)
'format 0033-623456789
For Each cell In rng.Cells: cell.Value = Format("0033" & Val(Replace(Replace(cell.Value, " ", ""), ".", "")), "@@@@""-""@@@@@@@@@"): Next
End Function