Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing arrays to Excel
Message
De
18/01/2001 09:07:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00464985
Message ID:
00465088
Vues:
16
Michael,

I think you need to pass the array by reference. Try:

.selection.subtotal(3,-4157,@laList,.t.,.f.,.t.)

Hope this helps

>I'm trying to convert an Excel macro for calculating subtotals to VFP. The VB syntax is :
>
>Selection.SubTotal GroupBy:=3, Function:=xlSum, TotalList:=array(11,12) Replace:=True, PageBreaks:=False, SummaryBelowData:=True
>
>
>My VFP syntax, which isn't working, is:
>
>.selection.subtotal(3,-4157,laList,.t.,.f.,.t.)
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform