+ Reply to Thread
Results 1 to 4 of 4

VBA stops responding half way - impossible bet simulation

  1. #1
    Registered User
    Join Date
    01-07-2015
    Location
    U.S.
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question VBA stops responding half way - impossible bet simulation

    Hello all,

    I came across this video and want to use Monte Carlo to examine it.
    https://www.youtube.com/watch?v=eivGlBKlK6M
    To accomplish the task, I write a VBA script to run the simulation. My scrip always stops at 2xx tries. I tried to run it on multiple computers and sometimes it stopped at 50.
    In addition, I can only run the script when sheet 1 is selected. I don't know how to fix this.
    I try to use DoEvents or add wait time, but none works.

    Excel is attached.
    Attached Files Attached Files
    Last edited by imyrgd; 01-09-2015 at 06:02 PM.

  2. #2
    Registered User
    Join Date
    01-07-2015
    Location
    U.S.
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: VBA stops responding half way - impossible bet simulation

    Where's all the experts ?

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: VBA stops responding half way - impossible bet simulation

    You're more likely to get useful help if you explain exactly what you're trying to do, rather than hope someone will try to divine your intent from the code.
    Last edited by shg; 01-15-2015 at 07:22 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-07-2015
    Location
    U.S.
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: VBA stops responding half way - impossible bet simulation

    Quote Originally Posted by shg View Post
    You're more likely to get useful help if you explain exactly what you're trying to do, rather than hope someone will try to divine your intent from the code.
    My script runs fine. The issue is that it is stop in the middle of the loop. Will update how it works later then.
    Last edited by imyrgd; 01-16-2015 at 06:59 PM.

+ 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. Excel stops responding to the keyboard after a form closes
    By neilbro in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-12-2014, 12:00 PM
  2. Too slow and excel stops responding
    By Ushzz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 02:15 AM
  3. Macro stops responding...
    By wayliff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2007, 09:22 PM
  4. excel stops responding
    By Greg in forum Excel General
    Replies: 0
    Last Post: 11-21-2005, 04:00 PM
  5. Autofilter stops responding
    By gazbea in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-08-2005, 11:24 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