+ Reply to Thread
Results 1 to 2 of 2

interrupt loop with yes/no option

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2016
    Posts
    187

    interrupt loop with yes/no option

    Hi,
    I want to give the option the user to exit from a macro if it runs too long.
    I know, how to exit from a loop, but I wonder, if there is a good practice to raise a yes/no messagebox to avoid the exit by accident.

    thank you

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: interrupt loop with yes/no option

    Hi there,

    See if the following code does what you need for monitoring loops and processes:

    Please Login or Register  to view this content.
    The highlighted values can be altered to suit your own requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

+ 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. VBA to loop through slicer option and export each to PDF
    By KirstieA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2019, 05:55 PM
  2. Interrupt a Loop?
    By margal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2017, 05:23 AM
  3. Loop code associated to Option Buttons
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2015, 11:42 AM
  4. [SOLVED] Fill down option not to interrupt conditonal formatting
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2014, 10:09 AM
  5. Replies: 0
    Last Post: 11-05-2009, 09:31 AM
  6. loop interrupt
    By jimbo_jones in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2006, 05:30 PM
  7. Interrupt While loop
    By jimbo_jones in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2005, 11:49 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