Then Cells(ligneTA, 27) = 'A1'
If Cells(ligneTA, 27) = 'A1'
qui vient de :
Sub trierParEquipe()
Dim ligneTA As Variant
For ligneTA = 4 To 40
If Cells(ligneTA, 25) = Range('maxiTA') Then Cells(ligneTA, 27) = 'A1'
If Cells(ligneTA, 27) = 'A1' Then Range('y' & ligneTA & ':z' & ligneTA).Select
Selection.ClearContents
Next ligneTA
End Sub
Sub trierParEquipe()
Dim ligneTA As Byte
For ligneTA = 4 To 40
If Cells(ligneTA, 25) = Range('maxiTA') Then
Cells(ligneTA, 27) = 'A1'
Range('y' & ligneTA & ':z' & ligneTA).ClearContents
Next ligneTA
End Sub
Sub trierParEquipe()
Dim ligneTA As Byte
For ligneTA = 4 To 40
If Cells(ligneTA, 25) = Range('maxiTA') Then
Cells(ligneTA, 27) = 'A1'
Range('y' & ligneTA & ':z' & ligneTA).ClearContents
End If
Next ligneTA
End Sub