Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It is different because the worksheet function errors out if the value is
not found, and you are not handling an error. It can be done, like so Dim tmp As Long On Error Resume Next tmp = WorksheetFunction.Find(third, y) On Error GoTo 0 Result = tmp < 0 but it is far more efficient to use a VBA function in VBA, rather than calling out to Excel. -- HTH Bob "Schizoid Man" wrote in message ... "Bob Phillips" wrote in message ... Use Instr Result = InStr(y, third) 0 -- HTH Bob Hi Bob, That certainly does help - your solution worked like a charm, though I'm not sure why. How is it different from what I had originally written down? Thx. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problems with WorksheetFunction.Index and WorksheetFunction.Match | Excel Programming | |||
Find WorksheetFunction - finding text within text | Excel Programming | |||
Problem using "Find" WorksheetFunction in Excel VBA | Excel Programming | |||
Max WorksheetFunction | Excel Programming | |||
WorkSheetFunction.CountIf & WorkSheetFunction.SumIf with 2 conditions? | Excel Programming |