+ Reply to Thread
Results 1 to 5 of 5

Stop Macro at First Blank Row

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Stop Macro at First Blank Row

    Hi Folks,

    Below is a macro that highlights the blank cells in column E. It works great however I can't get it to stop when it reaches a blank row. The other option would be to stop the macro when column B or C no longer has any data. Either way, I can't quite figure it out. Any help would be appreciated.


    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 02-08-2013 at 07:04 PM. Reason: Added code tags, as per forum rules. Don't forget!

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

    Re: Stop Macro at First Blank Row

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 02-08-2013 at 07:04 PM. Reason: Added code tags, as per forum rules. Don't forget!
    Ben Van Johnson

  3. #3
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: Stop Macro at First Blank Row

    I would have a try like this:
    Please Login or Register  to view this content.
    Last edited by rollis13; 02-11-2013 at 05:32 PM.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Stop Macro at First Blank Row

    Hi, HappyLadyToo,

    I like these lines:
    Please Login or Register  to view this content.
    AFAIR this will always look up Column AS and return the row of last used visible cell + 1 there - so why not check that column on itīs own instead of using a range that you donīt operate on (columns A to AR)?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Registered User
    Join Date
    08-20-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Stop Macro at First Blank Row

    Wonderful Thanks!!

+ 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