Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Not so Random Numbers

Greetings

I have been using this Me.bxnum.Value = Int((100000000000# * Rnd)
+ 1)
to populate a textbox used to assign a number to a storage box. it works ok.
i would like to know if there is a way to use a number as a starting point
i.e. 501 and the add 1 to that number daily. any ideas? Rather then using
completly random numbers.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Not so Random Numbers

have it store the value somewhere on the sheet?

you could just use

range("a1").value = range("a1").value +1

if the value is already held in the textbox pull it from there and use this

"Office_Novice" wrote:

Greetings

I have been using this Me.bxnum.Value = Int((100000000000# * Rnd)
+ 1)
to populate a textbox used to assign a number to a storage box. it works ok.
i would like to know if there is a way to use a number as a starting point
i.e. 501 and the add 1 to that number daily. any ideas? Rather then using
completly random numbers.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Not so Random Numbers

Thanks, thats a good start but the range changes so how would i have to
enter the range?

"tigoda" wrote:

have it store the value somewhere on the sheet?

you could just use

range("a1").value = range("a1").value +1

if the value is already held in the textbox pull it from there and use this

"Office_Novice" wrote:

Greetings

I have been using this Me.bxnum.Value = Int((100000000000# * Rnd)
+ 1)
to populate a textbox used to assign a number to a storage box. it works ok.
i would like to know if there is a way to use a number as a starting point
i.e. 501 and the add 1 to that number daily. any ideas? Rather then using
completly random numbers.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Not so Random Numbers

stick it in a call thats not going to be used, set the text colour to white

or if you mean it moves because new rows are added you counld use the
Range("A1").End(xlDown).value to select the last value in the range

"Office_Novice" wrote:

Thanks, thats a good start but the range changes so how would i have to
enter the range?

"tigoda" wrote:

have it store the value somewhere on the sheet?

you could just use

range("a1").value = range("a1").value +1

if the value is already held in the textbox pull it from there and use this

"Office_Novice" wrote:

Greetings

I have been using this Me.bxnum.Value = Int((100000000000# * Rnd)
+ 1)
to populate a textbox used to assign a number to a storage box. it works ok.
i would like to know if there is a way to use a number as a starting point
i.e. 501 and the add 1 to that number daily. any ideas? Rather then using
completly random numbers.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default Not so Random Numbers

Thanks alot, I know it was simple but i am still new at this.

"tigoda" wrote:

stick it in a call thats not going to be used, set the text colour to white

or if you mean it moves because new rows are added you counld use the
Range("A1").End(xlDown).value to select the last value in the range

"Office_Novice" wrote:

Thanks, thats a good start but the range changes so how would i have to
enter the range?

"tigoda" wrote:

have it store the value somewhere on the sheet?

you could just use

range("a1").value = range("a1").value +1

if the value is already held in the textbox pull it from there and use this

"Office_Novice" wrote:

Greetings

I have been using this Me.bxnum.Value = Int((100000000000# * Rnd)
+ 1)
to populate a textbox used to assign a number to a storage box. it works ok.
i would like to know if there is a way to use a number as a starting point
i.e. 501 and the add 1 to that number daily. any ideas? Rather then using
completly random numbers.



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
getting numbers divisible by 4 from random numbers in ascending order ramana Excel Worksheet Functions 6 June 19th 07 06:41 PM
I want random numbers generated without repeating numbers Johncobb Excel Worksheet Functions 2 September 7th 06 04:52 PM
Can Excel pick random numbers from 1-300 and not repeat numbers? Julian Excel Discussion (Misc queries) 1 June 7th 06 07:17 AM
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


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