+ Reply to Thread
Results 1 to 6 of 6

Stop when No more data exists below

  1. #1
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Stop when No more data exists below

    Dear all

    I want some code that exits a Do...loop when there is no more data below the activecell in column A? That is no data at all anywhere below the activecell in column A.

    Is this possible?

    Thanks

    JAmes
    Last edited by Jim28; 12-02-2010 at 04:54 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Stop when No more data exists below

    Hi Jim28

    Like this?
    Please Login or Register  to view this content.
    The code finds the last row used in column A and performs the loop until it finds it.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Stop when No more data exists below

    Hi
    This assumes your code moves the active cell on each iteration of the loop

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Stop when No more data exists below

    Quote Originally Posted by jaslake View Post
    Hi Jim28

    Like this?
    Please Login or Register  to view this content.
    The code finds the last row used in column A and performs the loop until it finds it.

    John
    Thanks John is it possible to do it using activecells?

  5. #5
    Forum Contributor
    Join Date
    06-24-2006
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Stop when No more data exists below

    Please Login or Register  to view this content.

    Perfect! Thanks :_

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Stop when No more data exists below

    What is your code supposed to do?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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