Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
Firstly, Merry Xmas to all and thanks for the help over the past year. I am using RANDBETWEEN to find a random number to conduct chook raffles. I have made the result appear on a seperate sheet so it looks like a raffle draw and not an excel sheet. However, I would like the numbers to appear to spin like poker machine wheels. I have seen this done before in Excel. Can someone tell me how to do it. Regards Michael |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This will spin a number between 1 and 100 in Range A1, change the sleep
integer to speed up and slow down the spin. Change X for how many spins. Option Explicit Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Sub SpinNumber() Dim X As Integer For X = 1 To 99 Range("A1") = Int((100 * Rnd) + 1) Sleep 10 Next X End Sub -- Regards, Rocky McKinley "Michael" wrote in message ... Hi All Firstly, Merry Xmas to all and thanks for the help over the past year. I am using RANDBETWEEN to find a random number to conduct chook raffles. I have made the result appear on a seperate sheet so it looks like a raffle draw and not an excel sheet. However, I would like the numbers to appear to spin like poker machine wheels. I have seen this done before in Excel. Can someone tell me how to do it. Regards Michael |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel, change column of negative numbers to positive numbers? | New Users to Excel | |||
Excel 2002 : Convert Positive Numbers to Negative Numbers ? | Excel Discussion (Misc queries) | |||
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? | Excel Worksheet Functions | |||
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? | Excel Worksheet Functions | |||
Insert spinning button with time format in Excel 2000? | Excel Discussion (Misc queries) |