Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() ok i've just wrote this for you, not checked it....but should work Code ------------------- Dim myArray(), maxArray%, myModelNo$ Erase myArray myModelNo = where ever you get your _ value (from user form? from entry on sheet??) 'find all you model numbers based on input i = 1 Do If InStr(1, Cells(i, 1).Value, myModelNo, vbTextCompare) < 0 Then maxArray = maxArray + 1 ReDim Preserve Arry(1 To maxArray) Arry(maxArray) = Cells(i, 1).Value 'Stores your model in Array End If i = i + 1 Loop Until Cells(i, 1).Value = "" 'output model numbers to new column i = 1 Do Cells(i, 2).Value = Arry(i) i = i + 1 Loop Until i = maxArray ------------------- -- gti_jober ----------------------------------------------------------------------- gti_jobert's Profile: http://www.excelforum.com/member.php...fo&userid=3063 View this thread: http://www.excelforum.com/showthread.php?threadid=52341 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MOS Excel Expert 2003 | New Users to Excel | |||
IME MODE FOR EXCEL 2007 (URGENT URGENT) | Excel Discussion (Misc queries) | |||
excel expert with data | Excel Worksheet Functions | |||
What next to become a developer or excel expert | Excel Discussion (Misc queries) | |||
Excel Expert | Excel Programming |