Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ticker Tape - Scroll Bar

Status
Not open for further replies.

medieval

Technical User
Jun 18, 2003
31
GB
Thanks for looking at this one.

I would like to add a ticker scroll bar into an excel
worksheet. The ticker will need to scroll a string variable.
Does anyone have any idea's as to how this can be acheived ?

regards,
Medieval.
 
Try this. A timer control would probably be better than my method of delay.
Code:
Sub test()
    Dim Mainstring As String
    Dim SmallString As String
    '---------------------------
    Mainstring = "THIS IS A LONG TEXT STRING TO SEE " _
    & "WHAT HAPPENS IN THE SCROLLBAR AND DEMONSTRATE THE PRINCIPLE" _
    & " **AGAIN** THIS IS A LONG TEXT STRING TO SEE " _
    & "WHAT HAPPENS IN THE SCROLLBAR AND DEMONSTRATE THE PRINCIPLE"
    '-------------------------------------------------
    For s = 1 To Len(Mainstring)
        SmallString = Mid(Mainstring, s, 50)
        Application.StatusBar = SmallString
        '--------------------------------------------
        ' DELAY SCROLLING
        'Application.Wait Now + TimeValue("00:00:01")
        For T = 1 To 1000000: Next T
        '--------------------------------------------
    Next
    Application.StatusBar = False
End Sub

Regards
BrianB
Use CupOfCoffee to speed up all windows applications
================================
 
Thats Great BrianB.
Thank you.

I threw a cup of coffee at my screen to make
the window application run faster. I'm waiting
to see if that works too.

:)
medieval
 
Just take out the "Delay" line of code - silly :)


Regards
BrianB
Use CupOfCoffee to speed up all windows applications
================================
 
Brian - I think you're the one that risks looking silly. Perhaps you've forgotten what's in your sig. . .

LOL

VBAjedi [swords]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top