Quote Originally Posted by benishiryo View Post
hi cat3rn. you're right. it needs a macro if you want the button. Otherwise, you could give the user a simple instruction to generate them by pressing F9. F9 is to calculate. the numbers will change when done so. the formulas in A1 would be:
=RANDBETWEEN(0,9)

if you need the button,
Sub test()

Calculate

End Sub
How to install your new code
  1. Copy the Excel VBA code
  2. Select the workbook in which you want to store the Excel VBA code
  3. Press Alt+F11 to open the Visual Basic Editor
  4. Choose Insert > Module
  5. Edit > Paste the macro into the module that appeared
  6. Close the VBEditor
  7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

To run the Excel VBA code:
  1. Press Alt-F8 to open the macro list
  2. Select a macro in the list
  3. Click the Run button
I like this Macro. How would I make it randomize the numbers in certain cells like E4 to N4 and D5 to D14 only.