Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
getting numbers divisible by 4 from random numbers in ascending order | Excel Worksheet Functions | |||
I want random numbers generated without repeating numbers | Excel Worksheet Functions | |||
Can Excel pick random numbers from 1-300 and not repeat numbers? | Excel Discussion (Misc queries) | |||
Non-random numbers generated by excel's data analysis random gener | Excel Worksheet Functions | |||
Non-random numbers generated by excel's data analysis random gener | Excel Discussion (Misc queries) |