View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
C++User via OfficeKB.com C++User via OfficeKB.com is offline
external usenet poster
 
Posts: 4
Default Unable to get Match property of the WorksheetFunction class

For some strange reason this works but now I'm having a problem with setting
the
Application.ThisWorkbook.Worksheet("Data Entry").Range("E" & x).Interior.
ColorIndex (3)

Tom Ogilvy wrote:
Try

Dim strValue as Variant ' rather than string

strValue = Application.Worksheets("Data Entry").Range("E" & x).Value
if iserror(strValue) then
msgbox "Value not found"
exit sub
end if

If the value isn't found it won't raise a 1004 error - it returns a
worksheet type error. This will at least give some indication if that is
the problem or not.

I'm still coming up with the same error after adding your recommandation.

[quoted text clipped - 9 lines]
Next x
End Sub


--
C is great... C++ is God's sin

Message posted via http://www.officekb.com