+ Reply to Thread
Results 1 to 4 of 4

Stopping a Macro after a Condition is met

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Stopping a Macro after a Condition is met

    Hey,

    I am using a macro to generate a copied worksheet template with different sheet names based off a list. I was wondering what the code would be to stop the macro once it reached a cell with nothing in it in the list, and where to put it.
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Stopping a Macro after a Condition is met

    Hi JediJoker,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    05-16-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Stopping a Macro after a Condition is met

    Thanks! That works perfectly!

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Stopping a Macro after a Condition is met

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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