Re,
L'instruction est celle-ci :
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = 3
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Pour limiter à la colonne X, il suffit de remplacer
Range(cel.Row & ":" & cel.Row).Select
Par le code suivant :
Range("X" & cel.Row).Select
Ce qui donne :
Sub Sous_Totaux()
ActiveSheet.ListObjects("Tableau1").Unlist
Range("A1").Select
Selection.Subtotal GroupBy:=12, Function:=xlSum, TotalList:=Array(17, 18, _
19), Replace:=False, PageBreaks:=False, SummaryBelowData:=True
Dim cel As Range
For Each cel In Range("L2:L200")
If cel.Value Like "Total*" Then
Range("X" & cel.Row).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = 3
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0
.PatternTintAndShade = 0
End With
With Selection.Font
.ColorIndex = 3
.TintAndShade = 0
End With
Else
End If
Next cel
End Sub
Cordialement