Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sum excel
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01620128
Message ID:
01620129
Vues:
57
my mistake.

botRow = botRow -1


excuse me, the code is:
mLett 		= "h"
mCell 		= ""
botRow 		= oExcel.Application.ActiveSheet.UsedRange.rows.count
mCell 		= mLett + ALLTRIM(STR(botRow))
mSum 		= "=SUM(H1:H" + ALLTRIM(STR(botRow)) + ")"
oExcel.application.Range(mCell).Select	&& debit sum select
oexcel.application.ActiveCell.Formula = mSum  && debit total
>Hi, I am trying to do a sum of a column in Excel. The below place the formula in the right cell but the sum does not actually happen? The cell where the sum should appear remains blank, even though I can see the formula in fx bar.
>
>
>mLett 		= "h"
>mCell 		= ""
>botRow 		= o.Application.ActiveSheet.UsedRange.rows.count
>mCell 		= mLett + ALLTRIM(STR(botRow))
>mSum 		= "=SUM(H1:H" + ALLTRIM(STR(botRow)) + ")"
>oExcel.application.Range(mCell).Select	&& debit sum select
>oexcel.application.ActiveCell.Formula = mSum  && debit total
>
>
>Thank you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform