#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Automated report

I have posted this request before but I have only gotten responses that
require manual intervention. I need to be able to open the worksheet and
have it automatically populated. The Data, Subtotal commands won't work for
what I need to do. I think I need a macro to do what I want to do.

I am trying to create a worksheet from the contents of another. I also need
to insert a subtotal line when the condition changes. For example, this is
what the input spreadsheet looks like.

AAA 20
AAA 30
AAA 40
BBB 20
BBB 35
BBB 15
BBB 25
CCC 25
CCC 25
CCC 25

This is what I need the new output worksheet to look like.

AAA 20
AAA 30
AAA 40
Subtotal AAA 90
BBB 20
BBB 35
BBB 15
BBB 25
Subtotal BBB 95
CCC 25
CCC 25
CCC 25
Subtotal CCC 75
Total 260

I need to avoid manual interventon and I have to be able to automatically
break on the change and insert a subtotal row. Can anyone help?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Automated report

Hi,

The best place to start is to record a macro that does what you would do
manually. Then see if it does what you want and if it doesn't post the code
here and explain in detail what works and what doesn't work.

To record a macro - Choose Tools, Macro, Record new macro. Give the macros
a name without spaces and click OK. Do all the steps you want the macro to
do and then choose Tools, Macro, Stop recorder.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Smitty" wrote:

I have posted this request before but I have only gotten responses that

require manual intervention. I need to be able to open the worksheet and
have it automatically populated. The Data, Subtotal commands won't work for
what I need to do. I think I need a macro to do what I want to do.

I am trying to create a worksheet from the contents of another. I also need
to insert a subtotal line when the condition changes. For example, this is
what the input spreadsheet looks like.

AAA 20
AAA 30
AAA 40
BBB 20
BBB 35
BBB 15
BBB 25
CCC 25
CCC 25
CCC 25

This is what I need the new output worksheet to look like.

AAA 20
AAA 30
AAA 40
Subtotal AAA 90
BBB 20
BBB 35
BBB 15
BBB 25
Subtotal BBB 95
CCC 25
CCC 25
CCC 25
Subtotal CCC 75
Total 260

I need to avoid manual interventon and I have to be able to automatically
break on the change and insert a subtotal row. Can anyone help?

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
Getting missing data from one report into another report... vlookupabyss Excel Discussion (Misc queries) 3 January 8th 08 03:26 PM
Automate Excel report to place certain data into existing report? Craig Harrison Excel Worksheet Functions 3 July 25th 06 01:54 PM
Automated Footer SUE R Excel Discussion (Misc queries) 5 May 10th 06 08:56 PM
Automated Linking deejayh Excel Discussion (Misc queries) 0 May 4th 06 01:26 PM
Header in Report Manager Report Steve K Excel Discussion (Misc queries) 0 March 7th 06 07:32 PM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"