Clignotement d'une cellule

Résolu
cs_filio Messages postés 18 Date d'inscription lundi 30 avril 2007 Statut Membre Dernière intervention 21 mai 2007 - 10 mai 2007 à 11:03
cs_filio Messages postés 18 Date d'inscription lundi 30 avril 2007 Statut Membre Dernière intervention 21 mai 2007 - 10 mai 2007 à 11:29
Bonjour,

Quelqu'un sait-il comment faire clignoter une cellule, (par exemple alternance de rouge et blanc)?

Merci

5 réponses

cs_DARKSIDIOUS Messages postés 15814 Date d'inscription jeudi 8 août 2002 Statut Membre Dernière intervention 4 mars 2013 130
10 mai 2007 à 11:18
Une cellule de quoi ? D'un listview, du flexgrid, du DBGrid, d'une soucoupe volante ?
3
jrivet Messages postés 7392 Date d'inscription mercredi 23 avril 2003 Statut Membre Dernière intervention 6 avril 2012 60
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]

@+: Ju£i?n
Pensez: Réponse acceptée
3
jrivet Messages postés 7392 Date d'inscription mercredi 23 avril 2003 Statut Membre Dernière intervention 6 avril 2012 60
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]

@+: Ju£i?n
Pensez: Réponse acceptée
3
cs_filio Messages postés 18 Date d'inscription lundi 30 avril 2007 Statut Membre Dernière intervention 21 mai 2007
10 mai 2007 à 11:29
Rien à dire vous déchirez tout!
Gracias!!!
3

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
cs_filio Messages postés 18 Date d'inscription lundi 30 avril 2007 Statut Membre Dernière intervention 21 mai 2007
10 mai 2007 à 11:25
Je suis sous VBA-E
on oublie donc la soucoupe volante, mais il s'agit dc d'une cellule de tableau
 
0
Rejoignez-nous