+ Reply to Thread
Results 1 to 2 of 2

traverse until non integer

  1. #1
    Registered User
    Join Date
    02-27-2006
    Posts
    16

    traverse until non integer

    here is the problem I have. I'm trying to condition format a few different lines. As it stands now it will go across the spreadsheet until a zero value is found, however I would like it to keep going until it reaches a non integer value.

    for example:

    Jan Feb Mar Apr Jun Jul Aug Sep Oct Nov Dec YTD Calctype
    25 50 21 96 cumulative


    so I would like the macro to check all the values until it reaches the word "cumulative"

  2. #2
    Tom Ogilvy
    Guest

    Re: traverse until non integer

    rw = 1 ' set to row you want to traverse
    i = 1
    do while lcase(cells(rw,i) <> "cumulative"


    i = i + 1
    Loop


    another possibility

    set rng = cells(rw,"IV").End(xltoLeft)
    lastcol = rng.column

    --
    Regards,
    Tom Ogilvy




    "evil baby" <[email protected]> wrote
    in message news:[email protected]...
    >
    > here is the problem I have. I'm trying to condition format a few
    > different lines. As it stands now it will go across the spreadsheet
    > until a zero value is found, however I would like it to keep going
    > until it reaches a non integer value.
    >
    > for example:
    >
    > Jan Feb Mar Apr Jun Jul Aug Sep Oct Nov Dec YTD Calctype
    > 25 50 21
    > 96 cumulative
    >
    >
    > so I would like the macro to check all the values until it reaches the
    > word "cumulative"
    >
    >
    > --
    > evil baby
    > ------------------------------------------------------------------------
    > evil baby's Profile:

    http://www.excelforum.com/member.php...o&userid=31983
    > View this thread: http://www.excelforum.com/showthread...hreadid=517844
    >




+ 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