+ Reply to Thread
Results 1 to 3 of 3

Code to search for the next cell with zero

  1. #1
    Registered User
    Join Date
    11-25-2007
    Posts
    46

    Code to search for the next cell with zero

    I use the following code to search for the next cell with a zero. But I found it stops if the value has zero contained such as 8.04, and I would like it to stop only when the value is "0".

    The cell formula is an indirect reference such as =INDIRECT($A192&J$187) in which there is no data yet, so the cell shows 0

    Please Login or Register  to view this content.
    Is there a way to have it pass over 8.04 and stop at the cell that has only a zero contained?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try changing
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    PS. Best way to learn is to record the actions. Ctrl + F > options > Match entire cell content

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-25-2007
    Posts
    46
    Quote Originally Posted by VBA Noob
    Try changing
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    PS. Best way to learn is to record the actions. Ctrl + F > options > Match entire cell content

    VBA Noob
    I had not even equated CNTL F (find) with this macro command - pretty dumb. I use the find features manually quite a bit. And I have recorded my actions to get at the underlaying code before.

    Thanks for all the help today.

+ 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