F
Fabian
I have made a custom dice rolling function for my spreadsheet as below.
The problem is that it does not automatically update. Normally, having
randomize(1,6) or whatever will recalulate when i press F9, but to make
this recalculate, I have to go into the cell and press enter. Is there a
way to make this recalculate normally?
Function ROLL(count As Integer, die_size As Integer) As Integer
Dim i
For i = 1 To count Step 1
Randomize
ROLL = ROLL + Int((die_size * Rnd(1)) + 1)
Next i
End Function
The problem is that it does not automatically update. Normally, having
randomize(1,6) or whatever will recalulate when i press F9, but to make
this recalculate, I have to go into the cell and press enter. Is there a
way to make this recalculate normally?
Function ROLL(count As Integer, die_size As Integer) As Integer
Dim i
For i = 1 To count Step 1
Randomize
ROLL = ROLL + Int((die_size * Rnd(1)) + 1)
Next i
End Function