cs_filio
Messages postés18Date d'inscriptionlundi 30 avril 2007StatutMembreDernière intervention21 mai 2007
-
10 mai 2007 à 11:03
cs_filio
Messages postés18Date d'inscriptionlundi 30 avril 2007StatutMembreDernière intervention21 mai 2007
-
10 mai 2007 à 11:29
Bonjour,
Quelqu'un sait-il comment faire clignoter une cellule, (par exemple alternance de rouge et blanc)?
jrivet
Messages postés7392Date d'inscriptionmercredi 23 avril 2003StatutMembreDernière intervention 6 avril 201260 10 mai 2007 à 11:23
Salut,
Regarde si ceci pourrait t'aider
'Dans ThisWorkBook
Private Sub Workbook_Open()
BoolBlink = True
Set CellToBlink = ActiveSheet.Range("A1")
Application.OnTime Now + TimeSerial(0, 0, 1), "BlinkCell"
End Sub<hr />
'DANS UN MODULE
'pour savoir si on doit clignoter
Public BoolBlink As Boolean
'Cellule a faire clignoter
Public CellToBlink As Range
Public Sub BlinkCell()
If Not BoolBlink Then Exit Sub
If CellToBlink.Interior.Color = vbRed Then
CellToBlink.Interior.Color = vbWhite
Else
CellToBlink.Interior.Color = vbRed
End If
Application.OnTime Now + TimeSerial(0, 0, 1), "BlinkCell"
End Sub<hr />
, ----
[code.aspx?ID=41455 By Renfield]
jrivet
Messages postés7392Date d'inscriptionmercredi 23 avril 2003StatutMembreDernière intervention 6 avril 201260 10 mai 2007 à 11:24
oups petite correction.
Si tu parles bien D'excel et non de soucoupe volante
Public Sub BlinkCell()
If BoolBlink Then
If CellToBlink.Interior.Color = vbRed Then
CellToBlink.Interior.Color = vbWhite
Else
CellToBlink.Interior.Color = vbRed
End If
End If
Application.OnTime Now + TimeSerial(0, 0, 1), "BlinkCell"
End Sub<hr />, ----
[code.aspx?ID=41455 By Renfield]