AreYouBush
XLDnaute Junior
Bonsoir le forum,
Est il possible de modifier la macro suivante afin de pourvoir mettre un mot de plusieur lettre à la place du "x"?
Option Explicit
Sub color()
Dim lig As Byte
Range("A2:G30").Interior.ColorIndex = xlNone
For lig = 2 To 31
If UCase(Cells(lig, 7)) = "X" Then Range(Cells(lig, 1), Cells(lig, 7)).Interior.ColorIndex = 3
Next
End Sub
Je suis débutant en VBA, merci de votre compréhension.
Est il possible de modifier la macro suivante afin de pourvoir mettre un mot de plusieur lettre à la place du "x"?
Option Explicit
Sub color()
Dim lig As Byte
Range("A2:G30").Interior.ColorIndex = xlNone
For lig = 2 To 31
If UCase(Cells(lig, 7)) = "X" Then Range(Cells(lig, 1), Cells(lig, 7)).Interior.ColorIndex = 3
Next
End Sub
Je suis débutant en VBA, merci de votre compréhension.