Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to move the range down in excel ?
Message
From
11/12/2008 08:06:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/12/2008 04:50:52
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01365010
Message ID:
01366621
Views:
14
>Hi,
>After I Export a file to a Excel worksheet,
>how can I sum up a column and give a total at the last row ?
>
>Please advise.
>
>Derek

Assuming you would sum column 4:
With oExcel.activeworkbook.activesheet
  .Columns(4).Rows( .usedrange.Rows.Count + 1 ).FormulaR1C1 = ;
    TEXTMERGE("=SUM(R1C4:R<<.usedrange.rows.Count>>C4)")
Endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform