Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default subtotal question

I use the following vba code
Cells.Select
Selection.Subtotal GroupBy:=6, Function:=xlSum, TotalList:=Array(4, 5),
_
Replace:=True, PageBreaks:=False, SummaryBelowData:=True
Selection.Subtotal GroupBy:=7, Function:=xlSum, TotalList:=Array(4, 5),
_
Replace:=False, PageBreaks:=False, SummaryBelowData:=True

The touble is that the TOTAL and SUBTOTAL apear in the row f and g
I would like them to to apear in row a

is there a trick?

greetings hans


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default subtotal question

Not in the settings for subtotal. You would need to include code in your
macro to move them from COLUMN F and G and place them in COLUMN A.

--
Regards,
Tom Ogilvy

"hans" wrote in message
...
I use the following vba code
Cells.Select
Selection.Subtotal GroupBy:=6, Function:=xlSum, TotalList:=Array(4,

5),
_
Replace:=True, PageBreaks:=False, SummaryBelowData:=True
Selection.Subtotal GroupBy:=7, Function:=xlSum, TotalList:=Array(4,

5),
_
Replace:=False, PageBreaks:=False, SummaryBelowData:=True

The touble is that the TOTAL and SUBTOTAL apear in the row f and g
I would like them to to apear in row a

is there a trick?

greetings hans




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
Subtotal question [email protected] Excel Worksheet Functions 4 August 14th 08 12:05 AM
subtotal question? wonderdogs828 Excel Worksheet Functions 2 January 3rd 06 11:08 PM
subtotal question wonderdogs828 Excel Discussion (Misc queries) 1 January 3rd 06 10:13 PM
Subtotal Question Bill McMichael Excel Worksheet Functions 2 December 29th 04 06:51 PM
Subtotal question Patricia Excel Worksheet Functions 2 November 23rd 04 07:25 PM


All times are GMT +1. The time now is 10:32 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"