Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CJJ CJJ is offline
external usenet poster
 
Posts: 2
Default Range.Subtotal different than menu function


When I interactively use the Data-Subtotals function, it creates the
subtotal lines and grand total line at the bottom, correctly per my
grouping column and subtotal columns. It also puts in "range bars" on
the left hand side that allows easy navigation, collapsing, expansion
of the subtotal groups.

When I do the same thing from c# code using the Range.Subtotal
function, using the same parameter values, I get only the subtotal
values and not the "range bars". Is that correct behavior? How do I
create those range bars from my code?

Thanks in advance,

CJJ

  #2   Report Post  
Posted to microsoft.public.excel.programming
CJJ CJJ is offline
external usenet poster
 
Posts: 2
Default Range.Subtotal different than menu function

On Feb 13, 10:33 am, "CJJ" wrote:
When I interactively use the Data-Subtotals function, it creates the
subtotal lines and grand total line at the bottom, correctly per my
grouping column and subtotal columns. It also puts in "range bars" on
the left hand side that allows easy navigation, collapsing, expansion
of the subtotal groups.

When I do the same thing from c# code using the Range.Subtotal
function, using the same parameter values, I get only the subtotal
values and not the "range bars". Is that correct behavior? How do I
create those range bars from my code?

Thanks in advance,

CJJ



after further research, the "range bars" I allude to are actually
"Outlines". And the solution may lie in performing an "automatic
outline" operation on the range that includes the subtotal lines

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Range.Subtotal different than menu function

CJJ,

Try doing it interactively with the Macro Recorder turned on. That could
show you your missing settings.

hth,

Doug

"CJJ" wrote in message
oups.com...

When I interactively use the Data-Subtotals function, it creates the
subtotal lines and grand total line at the bottom, correctly per my
grouping column and subtotal columns. It also puts in "range bars" on
the left hand side that allows easy navigation, collapsing, expansion
of the subtotal groups.

When I do the same thing from c# code using the Range.Subtotal
function, using the same parameter values, I get only the subtotal
values and not the "range bars". Is that correct behavior? How do I
create those range bars from my code?

Thanks in advance,

CJJ



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 by a range gls858 New Users to Excel 4 April 7th 09 10:57 PM
Subtotal of Abs of a range? G Lykos Excel Worksheet Functions 3 March 7th 07 07:26 PM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM
range problem with multiple use of subtotal function Debra Dalgleish Excel Programming 1 April 1st 04 04:25 PM


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