problème avec .ColorStops.Add(1).Color
Bonjour,
Petit problème chronophage...
.ColorStops.Add(1).Color doit être mal placé car il ne donne aucun résultat !
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| Sub cellule_Clignote()
Dim jaune As Integer
Dim vert As Integer
Dim bleu_clair As Integer
Dim gris_clair As String
jaune = 6
vert = 4
bleu_clair = 34
gris_clair = RGB(166, 166, 166)
With ActiveSheet.Range("a2")
.Interior.ColorIndex = jaune
Attente (2000)
.Interior.ColorIndex = vert
Attente (2000)
.Interior.ColorIndex = jaune
Attente (2000)
.Interior.ColorIndex = vert
Attente (2000)
.Interior.ColorIndex = jaune
Attente (2000)
.Interior.ColorIndex = vert
Attente (2000)
.Interior.ColorIndex = jaune
Attente (2000)
.Interior.ColorIndex = vert
Attente (2000)
.Interior.Pattern = xlPatternRectangularGradient
With .Interior.Gradient
.RectangleLeft = 0.5
.RectangleRight = 0.5
.RectangleTop = 0.5
.RectangleBottom = 0.5
.ColorStops.Add(1).Color = RGB(91, 224, 255)
End With
' .Interior.Gradient.ColorStops.Add(1).Color = RGB(91, 224, 255)
End With
ActiveSheet.Range("a2:a4").BorderAround LineStyle:=xlContinuous, Color:=gris_clair, Weight:=xlThin
End Sub |
En vous remerciant pour vos lumières !
Cordialement,
jp