Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Rolling credits list

I would like to add a userform with a rolling credit list.
I ca only find static text items like 'Label', 'TextBox'' etc.
I need something that scrolls automaticly by, lets say, 2 lines per second.

Archie


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Rolling credits list

Why not a "listbox." Use blank list item entries for intro and homespun
timer/counter to remove entries and rewrite. Jason

"Archie" wrote:

I would like to add a userform with a rolling credit list.
I ca only find static text items like 'Label', 'TextBox'' etc.
I need something that scrolls automaticly by, lets say, 2 lines per second.

Archie



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Rolling credits list


Adapt from following:

create a userform with 2 controls:
1 commandbutton
1 label (high enough for several lines.. e.g. 64points)


Option Explicit

Private Declare Sub Sleep Lib "kernel32.dll" ( _
ByVal dwMilliseconds As Long)

Const DELIM As String = ","
Dim bEsc As Boolean

Private Sub Shift(s As String)
Dim i&
i = InStr(1, s, DELIM)
s = Mid$(s, i + 1) & DELIM & Left$(s, i - 1)
End Sub

Private Sub CommandButton1_Click()
bEsc = True
End Sub

Private Sub UserForm_Activate()
Dim s$
bEsc = False
s = ",,,,,,Example,Of,A,Rolling,Credits,List,,,,"

On Error GoTo theEnd
Application.EnableCancelKey = xlErrorHandler
Do Until bEsc
Label1 = Replace(s, DELIM, vbLf)
Shift s
DoEvents
Sleep 400
Loop

theEnd:
End Sub

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
bEsc = True
End Sub


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Archie wrote in

I would like to add a userform with a rolling credit list.
I ca only find static text items like 'Label', 'TextBox'' etc.
I need something that scrolls automaticly by, lets say, 2 lines per
second.

Archie

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to open a list by rolling the cursor over the cell? Rick Arends Excel Discussion (Misc queries) 0 October 12th 08 10:53 PM
adding and subracting credits dmedina Excel Worksheet Functions 2 November 30th 07 09:42 PM
Using Sumif with debits & credits Carol@Bell Excel Discussion (Misc queries) 3 June 14th 07 11:38 PM
debits and credits in one column childothe1980s Excel Programming 2 February 2nd 06 04:18 PM
Z Chart i.e. top rolling annual bottom rolling monthly middle cum. wat prin Excel Worksheet Functions 0 January 28th 05 03:43 PM


All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"