bonjour
je rencontre ce problème avec ce vba:
Private Sub Worksheet_Change(ByVal Target As Range)
Static x As Boolean
If Target.Count > 1 Then Exit Sub
If x = False Then
x = True
'majuscule
If Not Intersect(Target, Range("I19:O3000")) Is Nothing Then Target.Value = UCase(Target.Value)
If Not Intersect(Target, Range("Z116: Z3000")) Is Nothing Then Target.Value = UCase(Target.Value)
'minuscule
If Not Intersect(Target, Range("P19:Y3000")) Is Nothing Then Target.Value = LCase(Target.Value)
If Not Intersect(Target, Range("B68:E68")) Is Nothing Then Target.Value = LCase(Target.Value)
x = False
End If
End Sub
cela me permet que certaine cellule soit tjs en minuscule et d'autres en majuscule
cela marche tres bien, sauf que sur ces cellules lié a ce vba je ne peux plus rentrer de formule
comment faire?
merci
je rencontre ce problème avec ce vba:
Private Sub Worksheet_Change(ByVal Target As Range)
Static x As Boolean
If Target.Count > 1 Then Exit Sub
If x = False Then
x = True
'majuscule
If Not Intersect(Target, Range("I19:O3000")) Is Nothing Then Target.Value = UCase(Target.Value)
If Not Intersect(Target, Range("Z116: Z3000")) Is Nothing Then Target.Value = UCase(Target.Value)
'minuscule
If Not Intersect(Target, Range("P19:Y3000")) Is Nothing Then Target.Value = LCase(Target.Value)
If Not Intersect(Target, Range("B68:E68")) Is Nothing Then Target.Value = LCase(Target.Value)
x = False
End If
End Sub
cela me permet que certaine cellule soit tjs en minuscule et d'autres en majuscule
cela marche tres bien, sauf que sur ces cellules lié a ce vba je ne peux plus rentrer de formule
comment faire?
merci