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

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Spinning numbers

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
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
Excel, change column of negative numbers to positive numbers? Nita New Users to Excel 3 November 27th 07 04:54 AM
Excel 2002 : Convert Positive Numbers to Negative Numbers ? Mr. Low Excel Discussion (Misc queries) 2 November 6th 06 03:30 PM
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? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
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? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
Insert spinning button with time format in Excel 2000? Pat Hughes Excel Discussion (Misc queries) 5 October 27th 05 12:55 AM


All times are GMT +1. The time now is 10:43 AM.

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"