Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sum excel
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01620128
Message ID:
01620129
Views:
58
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform