Bonsoir,
Pour le fun, je cherche à faire clignoter les chiffres de la colonne I si le % est supérieur à 40. Pour ce faire, en fouillant sur les différents forums j'ai trouvé cette VBA que j'ai inclus dans la feuille "Pilotes" :
Une aide et une explication me seraient d'un bon secours.
À vot' bon cœur
Pour le fun, je cherche à faire clignoter les chiffres de la colonne I si le % est supérieur à 40. Pour ce faire, en fouillant sur les différents forums j'ai trouvé cette VBA que j'ai inclus dans la feuille "Pilotes" :
Option Explicit
Public NextBlink As Double
Public Const BlinkCell As String = "SheetPilotes!”I5:I29"
Private Sub StartBlinking()
Application.Goto Range("A1"), 1
If cell.Value > "0.40" Then cell.Interior.ColorIndex = 3
If Range(BlinkCell).Interior.ColorIndex = 3 Then
Range(BlinkCell).Interior.ColorIndex = 0
Range(BlinkCell).Value = "White"
Else
Range(BlinkCell).Interior.ColorIndex = 3
Range(BlinkCell).Value = "Red"
End If
NextBlink = Now + TimeSerial(0, 0, 1)
Application.OnTime NextBlink, "StartBlinking", , True
et, comme vous devez vous en douter....ÉchecPublic NextBlink As Double
Public Const BlinkCell As String = "SheetPilotes!”I5:I29"
Private Sub StartBlinking()
Application.Goto Range("A1"), 1
If cell.Value > "0.40" Then cell.Interior.ColorIndex = 3
If Range(BlinkCell).Interior.ColorIndex = 3 Then
Range(BlinkCell).Interior.ColorIndex = 0
Range(BlinkCell).Value = "White"
Else
Range(BlinkCell).Interior.ColorIndex = 3
Range(BlinkCell).Value = "Red"
End If
NextBlink = Now + TimeSerial(0, 0, 1)
Application.OnTime NextBlink, "StartBlinking", , True
Une aide et une explication me seraient d'un bon secours.
À vot' bon cœur
Copie-Formule-1-2020-Covid19-2-.xlsm
Le service des pièces jointes, CJoint.com est un service de partage de fichier gratuit pour partager vos documents dans vos courriels, sur les forums ou dans vos petites annonces.
www.cjoint.com