View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dawn Bjork Buzbee Dawn Bjork Buzbee is offline
external usenet poster
 
Posts: 10
Default Subtotals with variable total/sum location

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