Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Move data from cells to form? Help!

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

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
move data in cells automatically Ann Excel Worksheet Functions 1 June 5th 08 03:43 PM
move data from multiple cells in one row to another KUMPFfrog Excel Worksheet Functions 2 July 20th 05 02:28 AM
retaining data after source cells move Allyson Excel Discussion (Misc queries) 3 June 10th 05 04:39 AM
how can I move cells after data input without using enter or tab mull Excel Discussion (Misc queries) 1 March 2nd 05 05:53 PM
Identify Blank Cells in Col & move coresponding data Yogi_Bear_79 Excel Programming 5 January 30th 04 09:09 PM


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