Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtotal in Excel
Message
De
10/01/2005 17:33:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Subtotal in Excel
Divers
Thread ID:
00975882
Message ID:
00975882
Vues:
73
How can I do the following in VFP:
 Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(5), _
        Replace:=True, PageBreaks:=True, SummaryBelowData:=True
I have
oExcel=CREATEOBJECT("Excel.Application")
oExcel.visible= .T.

oW=oExcel.Workbooks.Add(lcTemplate)
ow.Worksheets[1].select

oRange = oExcel.ActiveSheet.Range("A7:F"+TRANSFORM(6+lnRecCount))

oExcel.ActiveSheet.paste(oRange)
** now I want excel to subtotal by column a


 ****Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(5), _
        Replace:=True, PageBreaks:=True, SummaryBelowData:=True
Thanks alot


Peter
Peter Cortiel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform