Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

faire clignoter le contenu de la cellule

3 réponses
Avatar
Pseudo
J'aimerais faire clignoter le texte contenu dans une cellule

3 réponses

Avatar
Daniel.j
Bonjour
http://dj.joss.free.fr/faq.htm#clignote

Daniel
FAQ MPFE
http://dj.joss.free.fr/faq.htm


"Pseudo" a écrit dans le message de news:

J'aimerais faire clignoter le texte contenu dans une cellule


Avatar
RV
Bonjour Pseudo,
A mettre dans un module commun

Sub Clignotant()

Range("E3").Select

For compteur = 1 To 20
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
Application.Wait Now + TimeValue("00:00:01")
With Selection.Interior
.ColorIndex = 1
.Pattern = xlSolid
End With
Application.Wait Now + TimeValue("00:00:01")
Next

End Sub

Bonne journée
RV


"Pseudo" a écrit dans le message de news:

J'aimerais faire clignoter le texte contenu dans une cellule


Avatar
JB
Bonjour,

Voir PJ http://cjoint.com/?fClRpne7E1

Clignotement d'une cellule en fonction de sa valeur

La cellule B8 clignote si le total dépasse 1000

Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Application.OnTime Prochain, "clignote", schedule:úlse ' annule
Range("b8").Font.ColorIndex = 0
If Range("b8") >= 1000 Then
Range("b8").Font.ColorIndex = 3
Clignote
End If
End Sub

Dans un module:

Public Prochain
Sub Clignote()
If Range("b8").Font.ColorIndex = 3 Then
Range("b8").Font.ColorIndex = 0
Else
Range("b8").Font.ColorIndex = 3
End If
Prochain = Now + TimeValue("00:00:01")
Application.OnTime Prochain, "clignote"
End Sub

Sub ClignotePlus()
On Error Resume Next
Application.OnTime Prochain, "clignote", schedule:úlse ' annule
End Sub

Cordialement JB