Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Random Cell Value Display?

I want a routine that will choose and display, in a significant-sized window
or form, a cell value (person's name) from a range of cells. Prior to the
final selection, I'd like the window or form to flash other randomly chosen
names, at first rapidly, then more slowly until it stops with the final
selection, similar to that experienced by a roulette wheel. Complementary
sound effects (wheel clicking) a bonus

Any thoughts? Or better, code? :) John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Random Cell Value Display?

Try Somthing like this in a Stanard Code Module

Sub RandomPicks()
Dim aRange As Range
Dim Lastrow As Long
Dim ws As Worksheet
Dim i As Variant
Dim x As Long
Set ws = ActiveWorkbook.Worksheets(1)
Lastrow = ws.Cells(Rows.Count, 1).End(xlUp).Row
Set aRange = Range("A1:A" & Lastrow)

Do Until x = 60
For Each i In aRange
x = x + 1
UserForm1.Label1.Caption = i
Application.Wait (Now + TimeSerial(0, 0, x / 5))
Next
DoEvents
Loop
End Sub

Add a label to a user form and call the pocedure with which ever event you
like.



"John V" wrote:

I want a routine that will choose and display, in a significant-sized window
or form, a cell value (person's name) from a range of cells. Prior to the
final selection, I'd like the window or form to flash other randomly chosen
names, at first rapidly, then more slowly until it stops with the final
selection, similar to that experienced by a roulette wheel. Complementary
sound effects (wheel clicking) a bonus

Any thoughts? Or better, code? :) John

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Random Cell Value Display?

Redo....

Sub bbb()
Dim MyCell

MyCell = "A" & Int((100 * Rnd) + 1)

Do Until ActiveCell.Address(RowAbsolute:=False) = "$" & MyCell
ActiveCell.Offset(1, 0).Select
Loop

End Sub


"Office_Novice" wrote:

Try Somthing like this in a Stanard Code Module

Sub RandomPicks()
Dim aRange As Range
Dim Lastrow As Long
Dim ws As Worksheet
Dim i As Variant
Dim x As Long
Set ws = ActiveWorkbook.Worksheets(1)
Lastrow = ws.Cells(Rows.Count, 1).End(xlUp).Row
Set aRange = Range("A1:A" & Lastrow)

Do Until x = 60
For Each i In aRange
x = x + 1
UserForm1.Label1.Caption = i
Application.Wait (Now + TimeSerial(0, 0, x / 5))
Next
DoEvents
Loop
End Sub

Add a label to a user form and call the pocedure with which ever event you
like.



"John V" wrote:

I want a routine that will choose and display, in a significant-sized window
or form, a cell value (person's name) from a range of cells. Prior to the
final selection, I'd like the window or form to flash other randomly chosen
names, at first rapidly, then more slowly until it stops with the final
selection, similar to that experienced by a roulette wheel. Complementary
sound effects (wheel clicking) a bonus

Any thoughts? Or better, code? :) John

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
Display text at random Markv Excel Discussion (Misc queries) 2 July 25th 08 09:08 AM
Conditional display - IF cell is blank, display next used row! Patti[_7_] Excel Programming 2 March 28th 06 10:33 PM
Non-random numbers generated by excel's data analysis random gener Allie Excel Worksheet Functions 10 September 17th 05 06:19 AM
Non-random numbers generated by excel's data analysis random gener Harlan Grove Excel Discussion (Misc queries) 2 September 13th 05 04:06 PM
Shortcut key to display change the display from displaying cell values to cell formulae Adrian[_7_] Excel Programming 3 September 14th 04 12:07 PM


All times are GMT +1. The time now is 07:27 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"