+ Reply to Thread
Results 1 to 3 of 3

Macro to Refresh Random Numbers on Worksheet or Freeze Them

  1. #1
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Macro to Refresh Random Numbers on Worksheet or Freeze Them

    Hello,

    Is it possible to have a macro to refresh the random numbers on the 2017 Stats! sheet and another one to freeze them so they don't change? By freezing I mean to keep them until clicking on the 'Refresh Random Numbers'.

    Thank you for your help,
    XJ

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,771

    Re: Macro to Refresh Random Numbers on Worksheet or Freeze Them

    The way I would do this is by populating the random numbers using VBA instead of formulas. Then you don't have to worry about "freezing" them.

    For example, you could simulate RANDBETWEEN(1,14) with

    Cell.Value = Int(Rnd()*14) + 1
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Macro to Refresh Random Numbers on Worksheet or Freeze Them

    Thank you for the suggestion

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] macro created buttons not working, random numbers not random
    By dareeldill in forum PowerPoint Programming
    Replies: 4
    Last Post: 07-01-2017, 09:16 AM
  2. macro to put numbers in random order
    By miles44 in forum Excel General
    Replies: 3
    Last Post: 03-09-2017, 09:52 AM
  3. macro w/ Freeze panes keeps shifting where panes freeze on worksheet
    By sschwant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2015, 02:30 AM
  4. [SOLVED] Macro to pull 6 random numbers from a list of numbers.
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2014, 07:07 AM
  5. Random numbers without a macro?
    By cat3rn in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-05-2014, 04:10 PM
  6. Replies: 0
    Last Post: 01-07-2013, 08:39 PM
  7. Can I use a macro to enter Poisson random numbers?
    By raphile in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-19-2009, 12:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1