Inconsequenti-AL
Breaks Games
If it's any use, this macro should get round the 'Rerolling' thing without a lot of Copy/Paste Special.
Copy this routine and paste it into the macro editor. You can edit the 2 const lines to change the number and size of the dice, which is a slightly cumbersome, but it should work.
Sub RandomNumberMarco()
'
' Macro written by Inconsequenti-Al
'
' This macro will create NumRolls random numbers of
' dice with DiceSize faces stored in column D of a spreadsheet.
' Don't make NumRolls larger than 65536 or you will run out of rows and crash!
Const DiceSize = 20
Const NumRolls = 100
Cells(1, 1) = DiceSize
Cells(1, 2).FormulaR1C1 = "=TRUNC((RAND()*RC[-1]),0)+1"
For loop1 = 1 To NumRolls
Cells(loop1, 4) = Cells(1, 2).Value
Next loop1
End Sub
Copy this routine and paste it into the macro editor. You can edit the 2 const lines to change the number and size of the dice, which is a slightly cumbersome, but it should work.
Sub RandomNumberMarco()
'
' Macro written by Inconsequenti-Al
'
' This macro will create NumRolls random numbers of
' dice with DiceSize faces stored in column D of a spreadsheet.
' Don't make NumRolls larger than 65536 or you will run out of rows and crash!
Const DiceSize = 20
Const NumRolls = 100
Cells(1, 1) = DiceSize
Cells(1, 2).FormulaR1C1 = "=TRUNC((RAND()*RC[-1]),0)+1"
For loop1 = 1 To NumRolls
Cells(loop1, 4) = Cells(1, 2).Value
Next loop1
End Sub