Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Subtotals with variable total/sum location

On the limited information provided, that sounds attractive:

It is actually select case

Select Case sh.name
Case "Sheet1"

Case "Sheet2"

Case Else

end Select

--
Regards,
Tom Ogilvy


"Dawn Bjork Buzbee" wrote:

I am editing a macro that was working until the scope was expanded:

1) selects a variable range for sorting and subtotals
2) sorts on 2 key fields (columns are same for all worksheets)
3) creates nested subtotals (the GroupBy columns are consistent); the total
column varies with each worksheet (about 10)

I want to easily set the column position (Array) for the totals. Is Do Case
the best option when there are at least 10 different variations?

Any examples would be very appreciated!
--
Dawn Bjork Buzbee

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
Subtotals / Grand Total dp New Users to Excel 7 March 4th 08 04:49 PM
Doing 2 subtotals- 2nd one has some totals falling below 1st total Laura Excel Discussion (Misc queries) 0 September 26th 07 04:30 PM
HOW DO YOU TOTAL MORE THAN 30 SUBTOTALS? DREAMPOTTER New Users to Excel 2 September 12th 06 11:22 PM
Pivot Tables- Total the Subtotals? Irenerz Excel Worksheet Functions 1 June 14th 05 07:19 PM
grand-total of subtotals ? Neither rhyme nor reason Excel Worksheet Functions 3 February 11th 05 07:25 PM


All times are GMT +1. The time now is 10:03 PM.

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"