PC Review


Reply
Thread Tools Rate Thread

Automated report

 
 
Smitty
Guest
Posts: n/a
 
      30th Nov 2008
> 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 With Quote
 
 
 
 
Shane Devenshire
Guest
Posts: n/a
 
      1st Dec 2008
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated Printing of a Report Lamar Microsoft Access VBA Modules 0 29th Sep 2009 07:05 PM
Automated report =?Utf-8?B?ZmVzdGVy?= Microsoft Access Forms 1 31st Oct 2006 04:51 AM
Automated report writing =?Utf-8?B?amplbmNv?= Microsoft Access Reports 0 18th Sep 2005 06:56 PM
Automated Monthly Report Art... Microsoft Access 2 7th Feb 2004 01:25 AM
Automated Monthly Report Art... Microsoft Access 0 6th Feb 2004 08:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:27 AM.