kevin.philips
Active Member
- Joined
- Jan 7, 2003
- Messages
- 364
Hi
Having read various posts about creating timer events - I'd thought I'd have a go at something that would resemble a live 'tips of the day board'.
I want to have a userform displayed with 1 text box that generates a random message from the range("A1:A10") on my worksheet. I want this to update say every 20 seconds, much the same as a web banner rotation say.
Can u help
My Code
Thanks in advance
Kevin
Having read various posts about creating timer events - I'd thought I'd have a go at something that would resemble a live 'tips of the day board'.
I want to have a userform displayed with 1 text box that generates a random message from the range("A1:A10") on my worksheet. I want this to update say every 20 seconds, much the same as a web banner rotation say.
Can u help
My Code
Code:
Private Sub UserForm_Initialize()
msgticker
Application.OnTime Time + ("00:00:10"), "msgticker", True
End Sub
Sub msgticker()
Dim MyRndRange
MyRndRange = Int((10 * Rnd) + 1)
TextBox1 = Sheets("Sheet1").Range("A" & MyRndRange).Text
End Sub
Thanks in advance
Kevin