+ Reply to Thread
Results 1 to 4 of 4

Controlling how and when cells are calculated.

  1. #1
    Registered User
    Join Date
    01-05-2016
    Location
    Mertztown, PA
    MS-Off Ver
    2016
    Posts
    44

    Controlling how and when cells are calculated.

    Hi all,

    I have a wife that thinks that it is possible to beat the casino game of craps much like it is possible to count cards and beat the casino in black jack. Her contention is that you need to string together a multi roll strategy placing separate bets at certain times with increasing and decreased amounts. So I put together a spreadsheet that calculates the payouts and losses as the rules dictate. There are way too many rules to explain if you don't already know, so if your interested in the casino game of craps, a little Wikipedia search of the rules will explain. For my spreadsheet, the dice will keep on rolling until there is a 7 rolled. This is generally when the game ends for a shooter, and the next shooter is given the dice. Yes there are exceptions, but they are also accounted for in my spreadsheet. My spreadsheet will calculate the correct payout and when the payout or loss occurs.

    I now want to control when each individual roll of the dice is taken. For instance, in my spreadsheet, the dice rolls are all calculated at the same time, when in reality, there is a pause after each roll to give players time to place new bets, press or reduce previous bets if allowed, or even take off bets the table. How do I make it so that there is a pause in between calculating cells? Each roll causes evaluations of bets made in previous rolls so I think I should be able to make the calculations pause until I'm ready to make the roll.
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Controlling how and when cells are calculated.

    Hi, good luck with the statistics. Happy rolling
    For your question, set calculation to manual, you can do that under the menu item File, Options, Formulas and you will see the Calculation options, set it to manual
    if you want to 'ROLL' the dice then just press the F9 key to calculate.
    If you only want to be set to manual for this file then you need to write a small caro that is triggered when the workbook is opened that sets the calculation to manual and trigger another macro to set it back to automatic when the work book is closed
    Hope this helps
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    01-05-2016
    Location
    Mertztown, PA
    MS-Off Ver
    2016
    Posts
    44

    Re: Controlling how and when cells are calculated.

    Thanks Keebellah,

    I tried the method you described, and it works, but it still allows all of the cells to be calculated together. I really want to be able to calculate 1 roll at a time so some of the cells will calculate then there will be a stopping point that will stop everything until the user triggers an event for another roll. At which point some more calculations will occur until another stopping point is reached.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Controlling how and when cells are calculated.

    Then you will have to trigger an event per cell change and if in that range only process that one, calculate is not cell restricted.

+ 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. Spin button controlling multiple cells???
    By ieuandavies in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2015, 02:30 PM
  2. Controlling data input in two seperate cells
    By theisler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-31-2014, 12:13 PM
  3. controlling copied cells as picture
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2013, 04:26 AM
  4. Controlling used cells with VBA to write a formula
    By RagonichaFulva in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2011, 09:59 AM
  5. multiple cells controlling one cell
    By pillory in forum Excel General
    Replies: 2
    Last Post: 05-13-2010, 11:22 AM
  6. Excel 2007 : Controlling shape attributes from cells values
    By koval.andrey in forum Excel General
    Replies: 4
    Last Post: 09-21-2009, 10:01 AM
  7. controlling cursor movement in unlocked and protected cells
    By thomaskprakash in forum Excel General
    Replies: 1
    Last Post: 09-02-2009, 08:51 AM

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