Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel FindNext function driven by Automation
Message
De
08/12/2005 17:28:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01076296
Message ID:
01076424
Vues:
34
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform