Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Subtotals in object model?

I have a worksheet with a data list that uses Subtotals which I
programmatically create but that users sometimes modify (e.g., they change
the page break before and after).

Under certain circumstances I need to remove the Subtotals, do some
processing and then put back the Subtotals.

I've searched around in the Excel object model looking for the
representation of an active Subtotal but not found anything. Is the
definition of an existing Subtotal available to VBA? If so, I'll save away
all of the current settings, remove the existing subtotals, do my processing
and then reinstate the Subtotals as they were before I removed them.

TIA,

josh

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Subtotals in object model?

Josh,

If you're using SubTotals from the Data menu you can record making and
deleting them. Then edit your code to get what you want...

--
sb
"Josh Sale" <jsale@tril dot cod wrote in message
...
I have a worksheet with a data list that uses Subtotals which I
programmatically create but that users sometimes modify (e.g., they change
the page break before and after).

Under certain circumstances I need to remove the Subtotals, do some
processing and then put back the Subtotals.

I've searched around in the Excel object model looking for the
representation of an active Subtotal but not found anything. Is the
definition of an existing Subtotal available to VBA? If so, I'll save

away
all of the current settings, remove the existing subtotals, do my

processing
and then reinstate the Subtotals as they were before I removed them.

TIA,

josh



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Subtotals in object model?

I am using the Subtotals from the Data menu.

However, recording making and deleting them doesn't tell me what I need.

In particular, I need to figure out after the fact (i.e., after the user has
modified a programmatically created Subtotal) what they did so that I can
later restore the Subtotal. For example, I create a Subtotal without page
breaks between groups and summary data below. The user changes the Subtotal
to include page breaks and have summary data above.

I need to discover the current state of the Subtotals so that I can remove
them, do some processing and then recreate them as the user last had them.

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
VBA: Where to find Excel Object model? N. Foldager Excel Discussion (Misc queries) 13 February 6th 05 06:43 PM
"Excel.Application" Object Model Shaker Charts and Charting in Excel 2 January 9th 05 10:24 AM
Freeze Panes with Object Model Tom Ogilvy Excel Programming 0 July 22nd 03 03:31 PM
Does MS Query have an object model Frank[_12_] Excel Programming 2 July 10th 03 10:54 PM
Accessing the VBA project object model Tom Ogilvy Excel Programming 0 July 8th 03 02:47 PM


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