+ Reply to Thread
Results 1 to 4 of 4

Find first cell with value > 0 in a range using VBA

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    2

    Find first cell with value > 0 in a range using VBA

    Hi folks,

    I have a range that I would like to search through row by row until it finds the first cell with a value greater than 0. I thought of using the Range.Find method, but it seems that it only works to find a value known prior to the search. Has anyone done a task like this or have any suggestions?

    Many thanks.

  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: Find first cell with value > 0 in a range using VBA

    This should find it:

    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
    06-18-2013
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Find first cell with value > 0 in a range using VBA

    This did the trick. Thanks for the help.

  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: Find first cell with value > 0 in a range using VBA

    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