Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for your time KL, I knew it would be simple. Much appreciated.
Paul "KL" wrote in message ... Also if you need to precede your Rnd() function with the Randomize statement: Private Sub CommandButton1_Click() Dim R As Integer: R = ActiveCell.Row Randomize ' Initialize random-number generator. 'first ticket numbered 10000, dont panic X = Int(Rnd() * 30000) + 10000 TextBox1.Value = X R = 20 TextBox2.Value = Sheets("Sheet1").Cells(1, R) End Sub Regards, KL |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
move data in cells automatically | Excel Worksheet Functions | |||
move data from multiple cells in one row to another | Excel Worksheet Functions | |||
retaining data after source cells move | Excel Discussion (Misc queries) | |||
how can I move cells after data input without using enter or tab | Excel Discussion (Misc queries) | |||
Identify Blank Cells in Col & move coresponding data | Excel Programming |