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: 19
Default Find, Match, Compare or Search.... Help!

Using XL 2000

I'm trying to build a click event that will find matches in each of the 8
worksheet cells and (where matched/found) list the value in column ZZ of the
current row in listbox1.

code so far...

Private Sub FindTest_Click()
ListBox1.Clear
Dim Cell As Range
For Each Cell In Worksheets("Data1").Range("F2:F" & LCount)
Set c = Cell(1, 8).Find(SecondOp, LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
ListBox1.AddItem Cell(1, 1)
ListBox1.List(ListBox1.ListCount - 1, 1) = Format(Cell(1, 5),
"dd-mmm-yyyy")
Set c = Cell(1, 8).FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
Next
End Sub

The above (hacked from the help page) only checks the contents of a single
cell.

I need to adapt this routine to take an additional 8 selections and find the
same phrase/number selected in the corrosponding worksheet cells. The
worksheet cells contain a mixture of numbers and phrases, each sepreated by a
"|"
example; A1 = Brass|Steel|Aluminium

Two of these additions are required to find a numeriacal value that is and
< than the values in B1 and C1 respectively.

When a the search criterion is matched in every cell (in the target row) the
value in Cell ZZ of the same target row is added to listindex1

The worksheet contains up to 1,000 rows.

A tall order I know, any ideas appreciated.

Many thanks,

Paul
 
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
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
data filtering via vlookup or index/match/find or search withwildcard [email protected] Excel Worksheet Functions 10 April 29th 08 02:43 AM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
Compare/Find Exact Date match with varying time sweens319 Excel Worksheet Functions 10 October 9th 07 02:47 PM
VBA search and compare strings stuart Excel Programming 1 June 11th 04 01:00 AM


All times are GMT +1. The time now is 02:46 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"