Bonjour,
j'ai mis jaune mais je te laisse trouver les codes index color pour changer.
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Dim l%, Dl%, Dc%
Dl = Cells(Rows.Count, 1).End(xlUp).Row
Dc = 7 ' ou Cells(1, Columns.Count).End(xlToLeft).Column pour colonne I
Cells.Interior.ColorIndex = 2
l = ActiveCell.Row
Range(Cells(l, 1), Cells(l, Dc)).Interior.ColorIndex = 36
End Sub
Ooops color de Colonne A à G pour colorer de B à G il suffit de changer le chiffre de la colonne de départ :
Range(Cells(l, 2), Cells(l, Dc)).Interior.ColorIndex = 36