Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Access Subtotals from Macro

Hello all,
Just wondering if it is possible to access subtotals from a marco? If
so I am just looking for the general syntax. I do quite a few extracts
where the data needs to be subtotaled and then !some! of the subtotals
need to be used in another sheet (or book).This would be the formula
entered in the cell if done manually "='Buyouts 09.05'!F3911" but that
makes reference to a specific cell which will not be the same the next
time.Sample data would be something like:
A |B |C
A1 1 100
A1 1 100
A1 1 TOTAL 200
A1 2 5
A1 2 6
A1 2 TOTAL 11
A1 TOTAL 211

Does anyone know of a way to accomplish this? Is it even possible? Terry

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Access Subtotals from Macro

Can you search through the sheet and find the word total? - sure.

Turn on the macro recorder, then do Edit=find and search for Total. (make
appropriate other settings).

Then turn off the macro recorder. Look at the help example for the FindNext
method of the range of sample code of how you would use the find method to
find multiple instances. You could then use this information to build
your formulas.

Or you can select the column with the subtotal formulas and do
Edit=Goto=specialCells and select Formulas and Numbers

does this select all the cells you need? If so, do it with the macro
recorder turned on.

--
Regards,
Tom Ogilvy

"Terry K" wrote in message
oups.com...
Hello all,
Just wondering if it is possible to access subtotals from a marco? If
so I am just looking for the general syntax. I do quite a few extracts
where the data needs to be subtotaled and then !some! of the subtotals
need to be used in another sheet (or book).This would be the formula
entered in the cell if done manually "='Buyouts 09.05'!F3911" but that
makes reference to a specific cell which will not be the same the next
time.Sample data would be something like:
A |B |C
A1 1 100
A1 1 100
A1 1 TOTAL 200
A1 2 5
A1 2 6
A1 2 TOTAL 11
A1 TOTAL 211

Does anyone know of a way to accomplish this? Is it even possible? Terry



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
Multiple Subtotals in Excel Macro Ronnie Excel Worksheet Functions 0 June 2nd 10 11:13 PM
Macro for Automatic Subtotals NYbills Excel Discussion (Misc queries) 4 July 28th 06 06:15 PM
Macro for Subtotals lips Excel Worksheet Functions 0 February 2nd 06 09:21 PM
Subtotals macro Sami82[_2_] Excel Programming 2 September 12th 05 09:15 AM
Macro Subtotals Amber M Excel Programming 2 October 11th 04 05:19 AM


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