Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
AV
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range) If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub Application.EnableEvents = False zz = UCase(zz) Application.EnableEvents = True End Sub
AV
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range)
If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub
Application.EnableEvents = False
zz = UCase(zz)
Application.EnableEvents = True
End Sub
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range) If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub Application.EnableEvents = False zz = UCase(zz) Application.EnableEvents = True End Sub
AV
Hervé
Merci beaucoup Hervé
"AV" a écrit dans le message de news: OQiQVbj$
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range) If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub Application.EnableEvents = False zz = UCase(zz) Application.EnableEvents = True End Sub
AV
Merci beaucoup
Hervé
"AV" <alainPFFFvallon@wanadoo.fr> a écrit dans le message de news:
OQiQVbj$EHA.1264@TK2MSFTNGP12.phx.gbl...
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range)
If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub
Application.EnableEvents = False
zz = UCase(zz)
Application.EnableEvents = True
End Sub
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range) If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub Application.EnableEvents = False zz = UCase(zz) Application.EnableEvents = True End Sub
AV
Hervé
Au fait AV pourquoi Application.EnableEvents = False Application.EnableEvents = True Hervé
"AV" a écrit dans le message de news: OQiQVbj$
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range) If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub Application.EnableEvents = False zz = UCase(zz) Application.EnableEvents = True End Sub
AV
Au fait AV pourquoi
Application.EnableEvents = False
Application.EnableEvents = True
Hervé
"AV" <alainPFFFvallon@wanadoo.fr> a écrit dans le message de news:
OQiQVbj$EHA.1264@TK2MSFTNGP12.phx.gbl...
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range)
If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub
Application.EnableEvents = False
zz = UCase(zz)
Application.EnableEvents = True
End Sub
Au fait AV pourquoi Application.EnableEvents = False Application.EnableEvents = True Hervé
"AV" a écrit dans le message de news: OQiQVbj$
Dans le module de la feuille et pour la plage A1:B10
Private Sub Worksheet_Change(ByVal zz As Range) If Intersect(zz, [A1:B10]) Is Nothing Then Exit Sub Application.EnableEvents = False zz = UCase(zz) Application.EnableEvents = True End Sub
AV
AV
Au fait AV pourquoi Application.EnableEvents = False Application.EnableEvents = True
Parceque l'instruction zz = UCase(zz) redéclenche inutilement l'évènement Worksheet_Change donc --> "Application.EnableEvents = False" --> désactive les évènements "zz = UCase(zz)" --> met en majuscule "Application.EnableEvents = True" --> réactive les évènements
AV
Au fait AV pourquoi
Application.EnableEvents = False
Application.EnableEvents = True
Parceque l'instruction
zz = UCase(zz)
redéclenche inutilement l'évènement Worksheet_Change
donc -->
"Application.EnableEvents = False" --> désactive les évènements
"zz = UCase(zz)" --> met en majuscule
"Application.EnableEvents = True" --> réactive les évènements