Consulting

Results 1 to 7 of 7

Thread: Limited Blinking text

  1. #1

    Limited Blinking text

    How can I make a text blink only 5 times. Thank you for your assistance.

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Try running it on a timer
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    To 'flash' C3 five times, you could use code like:
    [vba]Option Explicit
    Dim i As Long
    Sub FlashCell()
    With Cells(3, 3).Borders
    If .LineStyle = xlContinuous Then
    .LineStyle = xlNone
    Else
    .Weight = xlMedium
    .LineStyle = xlContinuous
    End If
    End With
    i = i + 1
    If i Mod 10 = 0 Then
    i = 0
    Exit Sub
    End If
    Application.OnTime Now + TimeValue("0:00:01"), "FlashCell"
    End Sub[/vba]
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Does this help?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    The one common point in all of the discussions relating to "blinking text", is that those people generally held in high regard with Excel and or VBA all suggest not using blinking text where possible.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  6. #6
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Quote Originally Posted by Aussiebear
    The one common point in all of the discussions relating to "blinking text", is that those people generally held in high regard with Excel and or VBA all suggest not using blinking text where possible.
    Two good reasons for not using it:
    1. It destroys Excel's undo function for anything prior; and
    2. It's bad visually.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  7. #7
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    There you go
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •