Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel FindNext function driven by Automation
Message
From
08/12/2005 17:28:50
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01076296
Message ID:
01076424
Views:
32
An excellent suggestion which I have incorporated.

Thank you once again, Sergey!


Andrew

>You can store Row # from foundcell and keep calling FindNext until lnRowStored > lnRowFound.
>
>>The only problem I'm having now is that the FIND function is wrapping and so my test to exit the loop never evaluates to true. I can of course put a counter on it and exit as I have a known, finite number of records to peruse. That is a little crude, I'd prefer to find out how to FIND without wrapping and then quit...
>>
>>Andrew
>>
>>>FoxPro doesn't support named parameters. You've to look up in the Excel VBA reference what positional parameers are or use Intellisense. In this case FindNext(0 method have only one parameter
>>>foundcell = oExcel.Range.FindNext(oExcel.ActiveCell)
>>>
On a CLEAR day you can see forever.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform