Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PK PK is offline
external usenet poster
 
Posts: 69
Default Programatic Subotal Question

Hi!

I think the solution to this may be easy but it is eluding me...

I need to be able to programatically subtotal, but will programatically vary
which columns i will be totalling.

Here is a sample of the subtotal line:

Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(6, 7),
Replace:=True, PageBreaks:=False, SummaryBelowData:=True


Here is what i need to do: I want to be able to put "6,7" in a variable
(this will be varied based on the circumstances) and plug it into the
subtotal field. The reason i want to do this is because I am actually
creating the spreadsheet from Excel, and the number of columns will vary. I
want my program to begin subtotalling at column 6 thru the right-most column.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
PK PK is offline
external usenet poster
 
Posts: 69
Default Programatic Subotal Question

Clarification - when i said "subtotal field" i meant subtotal command.
thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programatic Reference to Libraries Wayne S. Excel Programming 5 October 31st 07 12:01 AM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 27th 05 07:46 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 22nd 05 03:30 PM
Programatic Data Validation Jdibble Excel Programming 2 May 2nd 04 08:28 PM
Subotal feature without labels? Dawn R. Excel Programming 1 October 31st 03 01:18 AM


All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"