View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mark[_50_] Mark[_50_] is offline
external usenet poster
 
Posts: 15
Default Finding from a range

I am using Excel 97.

I have a range which is named "status"

When the criteria is matched below I am wanting to place it in different
places on a spreadsheet, but it doesn't always work particularly when there
are similiarities in the team name.

For example:

If team = Range("Status").Find("Mansfield Town 2002") Then
'do something
End if

If team = Range("Status").Find("Mansfield Town 2003") Then
'do something
End if

If team = Range("Status").Find("Mansfield Town") Then
'do something
End if

Can anyone offer me some code which is a more reliable way of picking up the
correct team?

Thanks
--
Mark A Whitehead