Regarde, tu n'arrêtes jamais d'enchainer les demandes !
Non, pour majuscule, ce n'est pas possible. par contre, on peut changer la valeur de la cellule :
Private Sub worksheet_change(ByVal target As Range)
Set wf = WorksheetFunction
Set rmail = Intersect(target, Range("A:A"))
Set rtel = Intersect(target, Range("D:D"))
tmodif = Array(".", "-", " ", "_", "/")
If Not rmail Is Nothing Then
application.enableevents = false
For Each cell In rmail
with cell
If .Value Like "*@*" Then .Hyperlinks.Delete
.value = lcase(.value)
with .Font
.Bold = False
.Italic = False
.Underline = False
.Name = "Calibri"
.Color = xlAutomatic
.Size = 11
'.numberformat = "@"
End With
end with
Next cell
application.enableevents = true
End If
If Not rtel Is Nothing Then
Application.EnableEvents = False
For Each cell In rtel
pays = IIf(cell.Offset(0, -1).Value <> "", cell.Offset(0, -1).Value, "France")
prefixe = wf.Index(Sheets("Listes").Range("Liste[Indicatifs]"), wf.Match(pays, Sheets("Listes").Range("Liste[Pays]"), 0))
nvval = cell.Value
If nvval Like "*#*#*#*#*#*" Then
For i = LBound(tmodif) To UBound(tmodif)
nvval = Replace(nvval, tmodif(i), "")
Next i
cell.Value = prefixe & nvval * 1
If pays = "France" And Len(cell.Value) <> 11 Then cell.Interior.Color = 255
End If
Next cell
Application.EnableEvents = True
End If
End Sub
Bon, à plus sur un nouveau sujet peut-être