Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Get Page Wise Totals in Excel
Message
From
29/07/1999 04:22:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/07/1999 02:03:58
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00247106
Message ID:
00247550
Views:
27
>>>Is it possible to get pagewise totals in Excel ??
>>>
>>>Any ideas/suggestions...
>>>
>>>TIA...
>>Vinod,
>>Take a look at subtotal method. Also there is sample code about it today title "....array...excel..".
>>Cetin
>
>I found that thread, Thnks for the tip and code...
>
>Only one question... How we can select a particular page.. i.e. How we can come to know where page ends (i want to automate this thing from vfp...)
>
>Pls advs...
Vinod,
I hope this helps as a starter :
#include "xlConstants.h"
USE home()+"samples\data\customer"
Application.datatoclip("customer",reccount(),3)
PUBLIC oExcel
oExcel = createobject("Excel.application")
Clear
WITH oExcel
  .WorkBooks.Add
  WITH .ActiveSheet
    .Range("D20").select
    .Paste
    lcLastCell = .Range("A1").SpecialCells(xlLastCell).Address(.f.,.f.,xlA1)
    ? lcLastCell
    .Range("A1").SpecialCells(xlLastCell).Select
    .Application.Selection.Offset(1).Select
  ENDWITH
  .visible = .t.
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
Next
Reply
Map
View

Click here to load this message in the networking platform