Collapsing Rows with subtotals...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All,

I have a macro that has run and created multiple subtotals. At the end, I
would like the macro to collapse all of the subtotal ranges so that the user
will see just the summary subtotal data. Does anyone have any ideas on how
to accomplish this?

Thanks,

Trevor
 
Turn on the macro recorder, then collapse the rows. Turn off the macro
recorder, and you should have your code.
 
I have been following your threads and I have what might be a silly question.
Are you using the subtotal function or are you using Data -> Subtotals. Data
-> subtotals is definitely the way to go...
 
I have been using Data -> Subtotals for the main portion of the sheet. Then
Tom so wisely suggested that I use a "dummy" subtotal function within the
cell formula for my percentages. I used that in order for the grand subtotal
to ignore its value. I then was looking for a way to "roll up" the subtotals
and I had forgotten about the little 1,2,3 buttons in the top left corner and
was trying to record a macro by individually collapsing each subtotal range.
All is good now, however.

Thanks to all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Subtotal Formatting 2
subtotals 1
labels for subtotals 1
Excel VBA Expand/Collapse with Subtotals 2
SubTotals 3
percent of row in subtotal range 1
Issue with nested data subtotals 3
Subtotal Sidebar query 2

Back
Top