Dabaron2321
New Member
- Joined
- Jan 20, 2016
- Messages
- 9
Hi i'm using the following macro that is set to run every time i press my form button:
Sub One()
Range("b1:B1000").Value = Int((200 - 1 + 1) * Rnd + 1)
End Sub
the problem is when i press the button each cell brings back the same result, ie. all the cells display 154 then when pressed again all show 86 then all show 5 etc, when i want all the cells between b1 and b1000 to function independent to each other, yet i don't want to have run a separate formula for each cell? Any advice?
Sub One()
Range("b1:B1000").Value = Int((200 - 1 + 1) * Rnd + 1)
End Sub
the problem is when i press the button each cell brings back the same result, ie. all the cells display 154 then when pressed again all show 86 then all show 5 etc, when i want all the cells between b1 and b1000 to function independent to each other, yet i don't want to have run a separate formula for each cell? Any advice?