Hey ya!
I am having serious problems with simulating a dice thrown in Visual Basic (the one in Excel). I want the number to appear in a textblock (called txt1).
The code I am using right now is:
txt1 = Int(6 - 1 + 1) * Rnd + 1
The problem with this code is that it DOES create numbers ranging from 1 to 6, but it makes those numbers with a 'comma' (is that the right word?). So in short I get 2,4 and 6,9 and stuff.
My question is: How do I create a code that makes the numbers from 1 to 6 in the textblock without the 'comma'.
The person who tells me the right thing will get:
-My eternal thankfulness![]()
-a rep point
EDIT: I don't need the code anymore, just got it through another way![]()




Reply With Quote




