View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dr.Ile[_14_] Dr.Ile[_14_] is offline
external usenet poster
 
Posts: 1
Default Search words in array?


Hello,

Can you help me out with this problem:
I have an array DXF with m elements. In these m element are differen
numbers and also words. I want to count (find) all the words LINE i
this array. Why this procedure want work:

For i = 1 To i = UBound(DXF)
If DXF(i) = "LINE" Then
n = n + 1 ‘n=number of words LINE in array
End If
Next i


Or if I turn my question little different:
How can I search for perticular words in array?

Thank you in advanc

--
Dr.Il
-----------------------------------------------------------------------
Dr.Ile's Profile: http://www.excelforum.com/member.php...fo&userid=1597
View this thread: http://www.excelforum.com/showthread.php?threadid=53254