Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel.subtotal
Message
From
15/08/2002 04:44:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/08/2002 14:50:54
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00689689
Message ID:
00689882
Views:
21
Peter,
Pass the array with reference :
.Subtotal(1,-4157,@la1,.t.,.f.,.t.)
Cetin

>I now took the .Subtotal out and the error goes away. The subtotal line is created but the columns in my array la1 are not created?
>How can I pass the column numbers??
>
>
>Peter
>
>
>>the following reports oRange is not an object
>>
>>
>>oRange=THISFORM.oExcel.activesheet.RANGE("a4:l"+TRANSFORM(lnNumRecs))
>>
>>oRange.selection.Subtotal(1,-4157,la1,.t.,.f.,.t.)
>>

>>
>>
>>It is supposed to subtotal on theleftmost column. la1 is an array with 5 members each being the column number of the5 colums which need to be subtotaled
>>
>>Anyone any ideas??
>>
>>Thanks
>>Peter
Ç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