Bonjour,
ce code ne peut pas fonctionner correctement, après sa première utilisation.
worksheet_change ne fonctionne que s'il y a une modification d'une cellule. Or la protection, activée à la fin de cette macro événementielle, empêche toute modification ultérieure.
soit il faut supprimer cette protection, soit ne pas utiliser une macro événementielle (mais une macro déclenchée à la demande).
Private Sub Worksheet_Change(ByVal Target As Range)
'ActiveSheet.Unprotect Password:="."
Set Groupe = Application.Intersect(Target, Range("A:N"))
If Not Groupe Is Nothing Then
Application.EnableEvents = False
For Each cell In Groupe
If Application.IsText(cell) Then
Select Case cell.Column
Case 1, 4, 6 'A,D,E
cell.Value = UCase(cell)
Case 8, 10 'H,J
cell.Value = LCase(cell)
Case 12, 14 'L,N
cell.Value = Application.Proper(cell)
End Select
End If
Next
End If
Application.EnableEvents = True
'ActiveSheet.Protect AllowInsertingHyperlinks:=True, Password:="."
End Sub