Afficher un message
Vieux 25/10/2005, 17h28   #5 (permalink)
Nikolaï
XLDnaute Nouveau
 
Date d'inscription: octobre 2005
Messages: 29
Par défaut Re:couleur de ligne en fonction du contenu d1 cellule

Bonjour

Tu peux faire cela si tu veux.

Sub toto()
Dim CELL As Range
For Each CELL In Range('A1:A10')
If CELL = 'accepté' Then
Range(CELL.Row & ':' & CELL.Row).Font.ColorIndex = 43
ElseIf CELL = 'refusé' Then
Range(CELL.Row & ':' & CELL.Row).Font.ColorIndex = 5
ElseIf CELL = 'en attente' Then
Range(CELL.Row & ':' & CELL.Row).Font.ColorIndex = 3
End If
Next
End Sub

A plus tard
Christophe
Nikolaï est déconnecté   Réponse avec citation