Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default traverse until non integer


here is the problem I have. I'm trying to condition format a fe
different lines. As it stands now it will go across the spreadshee
until a zero value is found, however I would like it to keep goin
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 th
word "cumulative

--
evil bab
-----------------------------------------------------------------------
evil baby's Profile: http://www.excelforum.com/member.php...fo&userid=3198
View this thread: http://www.excelforum.com/showthread.php?threadid=51784

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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" wrote
in message ...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
survey traverse computations SRH Excel Discussion (Misc queries) 0 February 27th 10 01:54 AM
How do I add an integer to an existing integer? Aaron Excel Worksheet Functions 3 December 17th 09 09:46 PM
integer integer format Excel Worksheet Functions 1 May 3rd 07 06:45 PM
traverse data based on 2 conditions olga Excel Discussion (Misc queries) 5 January 9th 07 04:12 PM
Traverse treeview bottom to top RB Smissaert Excel Programming 2 August 23rd 03 07:34 PM


All times are GMT +1. The time now is 12:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"