+ Reply to Thread
Results 1 to 2 of 2

How to force long loops to end

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Vancouver, BC, Canukistan
    MS-Off Ver
    12
    Posts
    21

    How to force long loops to end

    I've been looking for a simple solution for the title question and I became an expert at everything, but! Up until 20 minutes ago, that is and I want to share the solution:
    Please Login or Register  to view this content.
    Hope it works for all as well as it works for me! I made a text box in the spreadsheet and linked it kill_macros. One click and I see the R.I.P. message in cell macro_msgs!!

    Edit for the benefit of the visually impaired:

    How to force long loops to end
    Loops can be endless by design! Like in shuffling cards! Try using For, Do or While to shuffle a deck of cards!

    Lesson learned:

    Some gurus around here seem to be guruer then other gurus, while the undersigned seems to be the guruest guru on the topic!

    Comments/critiques welcome!
    Last edited by danleonida; 11-03-2012 at 04:26 PM. Reason: add/fix+add/add

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: How to force long loops to end

    Please lookup For..Next, For Each..Next, Do..Loop and While..Wend to see how loops are actually written these days. Then lookup Exit For, Exit Do to see how to check for a condition and exit a loop.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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