LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Nested Subtotal and Macro

Sounds like it is using selection and the selection isn't being expanded on
each iteration.

after each subtotal command put in a line like

selection.CurrentRegion.Select

--
Regards,
Tom Ogilvy

"KJaquish" wrote in message
...
I am having a problem creating a macro to create nested subtotals. I used
the Record Macro feature and when I stop recording, the data looks just as

I
want it. However, when I run the macro, it displays one of the Grand

Totals
near, but not at the bottom of the data, and it doesn't include a subtotal
for the last group of data at all. The Grand Total that does appear at

the
bottom appears correct, but the odd formatting and placement make it
difficult to use. How can I get the macro to return the same results that

I
get if I create the subtotals manually?



 
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 with sumif nested Steve Excel Worksheet Functions 1 November 20th 09 02:30 AM
nested subtotal with sumproduct SteveDB1 Excel Worksheet Functions 0 September 18th 08 12:05 AM
follow up to nested subtotal/sumproduct SteveDB1 Excel Worksheet Functions 0 August 28th 08 05:48 PM
Nested --- Subtotal IF function Lisa Beach Excel Worksheet Functions 3 November 23rd 05 07:58 PM
Nested Subtotal Formula nickimu Excel Worksheet Functions 1 August 30th 05 04:21 PM


All times are GMT +1. The time now is 11:39 AM.

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

About Us

"It's about Microsoft Excel"