LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Searcing throught using part of string


Hello

I want to determine the size of the range of data to loop through
before I use the values to fill an array. Basically, I will start at
row 1 and loop until I find a cell in column A that says "Run Rate data
is from from customer for week" the problem is that I can't use that
entire statment becuase the week number changes from week to week.

But if I could just tell it to loop unti it find the beginning of the
string, I think that would work. Here is what I have, but it's not
working.


prodcntr = 0
For prodcntr = 1 To findrange
Left(Worksheets("Schedule").Cells(prodcntr,1).Valu e, 8) = "Run Rate"))
If Worksheets("Schedule").Cells(prodcntr, 2) < "" And
Worksheets("Schedule").Cells(prodcntr, 2) 0 Then
prodlgnth = prodlgnth + 1

End If

Next prodcntr

ReDim prodarray(6, prodlgnth)

prodlgnth = 0


and from here it goes on to fill and array and compare the values of
the array with values on another worksheet. Any suggestions? I would
like to do something like this to make the program more dynamic,
therefore it would be able to handle new products in the future as they
are added.


--
bundyloco
------------------------------------------------------------------------
bundyloco's Profile: http://www.excelforum.com/member.php...o&userid=23386
View this thread: http://www.excelforum.com/showthread...hreadid=396742

 
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
an I get a cell value throught posted hyperlink to another excel s Mohamed Excel Worksheet Functions 0 December 9th 09 01:42 PM
delete a - if it is the last part of a string deb Excel Discussion (Misc queries) 1 September 21st 08 01:18 AM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
Searcing foran Excel event fired. Dwipayan Das Excel Worksheet Functions 1 July 7th 08 08:46 AM
repost: searcing multi excel files... Scott Excel Programming 14 April 24th 05 04:51 PM


All times are GMT +1. The time now is 09:05 PM.

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

About Us

"It's about Microsoft Excel"