+ Reply to Thread
Results 1 to 2 of 2

To stop RANDOMBETWEEN function from recalculating

  1. #1
    Registered User
    Join Date
    01-03-2019
    Location
    FortMcmurray, Alberta
    MS-Off Ver
    Office 2016
    Posts
    9

    To stop RANDOMBETWEEN function from recalculating

    Hello All,

    I am utilizing following function to randomly generate positive integer =IF(NOT(ISBLANK(B2)),RANDBETWEEN(15,1506009),"") but it keeps recalculating itself every time new number is generated.

    It can be solved through the following VBA code for RAND() numbers.

    Please Login or Register  to view this content.
    But its not working for RANDBETWEEN(). I have attached a screenshot for the code explanation as well. Please help

    ThanksCapture_RAND VBA Code.JPG
    Last edited by Abbat; 01-03-2019 at 10:20 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: To stop RANDOMBETWEEN function from recalculating

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Stop pivot slicer from recalculating % total
    By tamaramb in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-04-2016, 09:15 PM
  2. Stop whole sheet recalculating after a data input is changed
    By mikebeas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-12-2015, 04:46 PM
  3. [SOLVED] Stop a Formula from Recalculating the Next Day It's Opened
    By iseman22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2013, 03:05 PM
  4. Stop cell from Recalculating after certain Date has passed
    By travisg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2013, 12:52 AM
  5. Automated macro won't stop recalculating
    By Stickleback in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2012, 01:16 PM
  6. How to stop sheet constantly recalculating (could be due to userform)
    By AussieM8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2009, 11:44 AM

Tags for this Thread

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