Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel FindNext function driven by Automation
Message
 
À
08/12/2005 13:23:52
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:
01076312
Vues:
25
This message has been marked as a message which has helped to the initial question of the thread.
>Hello All,
>
>The following code gives me an error "Function name is missing )" on the line where I try to invoke the FindNext function. I suspect it is the VARIANT after: in the clause that needs to be tweaked somehow, but I haven't been able to determine how.
>
>Any suggestions welcome!
>
>
>oExcel.Range("F8").Select
>oExcel.Selection.End(xlDown).Select
>oExcel.SendKeys("{DOWN}")
>foundcell = oExcel.ActiveSheet.Cells.Find("=SUBTOTAL(9,E")
>DO WHILE .t.
> oExcel.Range(foundcell.address).select
>* oExcel.SendKeys("{RIGHT}{RIGHT}")
> oExcel.ActiveCell.OffSet(0,3).FormulaR1C1 = "=RC[-1]/RC[-3]"
>
> foundcell = oExcel.Range.FindNext(after:=oExcel.ActiveCell)
> IF ISNULL(foundcell)
>   EXIT
> ENDIF
>
>ENDDO
>
You can't use named parameters in VFP, try:
foundcell = oExcel.Range.FindNext(oExcel.ActiveCell)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform