+ Reply to Thread
Results 1 to 2 of 2

Error handler in simulation

  1. #1
    Registered User
    Join Date
    04-27-2017
    Location
    Holstebro, Denmark
    MS-Off Ver
    Office 365
    Posts
    1

    Error handler in simulation

    Hi,

    I am trying to put in an error handler in a simulation of currency prices. I simulate 10,000 times and use a worksheet function which from time to time gives an run time error due to a too large number being drawn for input, so when that happens I want the simulation to draw a new number and try again from the same simulation step. Any ideas how to do this?

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Error handler in simulation

    More info on error handling.

    If the program errors with an overflow (Error number 6) then just assign a new number and resume

    Please Login or Register  to view this content.

+ 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. Error Handler for Compile Error in Hidden Module
    By Jerbinator in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-29-2016, 01:56 PM
  2. [SOLVED] VBA Error Handler: place zero in error cell
    By lostest in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2015, 06:10 PM
  3. 'While' function inside of error handler giving an error/failing
    By dnwadams in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2015, 12:18 AM
  4. [SOLVED] Need error handler code to avoid pivot table refreshing error if no data is available
    By adelkam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2015, 12:37 PM
  5. Getting Run-time Error 91. Error handler not working.
    By rbs123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2014, 04:20 AM
  6. [SOLVED] VBA Error Handler
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2013, 10:08 AM
  7. Replies: 1
    Last Post: 02-08-2006, 06:25 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