PC Review


Reply
Thread Tools Rate Thread

Automating a line item for several worksheets?

 
 
=?Utf-8?B?dHBtYXg=?=
Guest
Posts: n/a
 
      25th Jun 2007
I want to automate a row with summary calculations for each worksheet that is
added to my workbook. Is there a macro that would enable me to add a row with
calculations for a series of worksheets? The worksheets will use the same
format, so that the data will be easily found. I intend to control where the
new worksheets are placed by ensuring they are placed between two hidden
worksheets.

Thanks.
 
Reply With Quote
 
 
 
 
Vasant Nanavati
Guest
Posts: n/a
 
      26th Jun 2007
I'm not sure I clearly understand the requirements, but try putting code
like this in the ThisWorkbook code module:

Private Sub Workbook_NewSheet(ByVal Sh As Object)
Sh.Range("A30:G30").FormulaR1C1 = "=SUM(R2C:R[-1]C)"
End Sub

Adjust the formula(s) to suit.
___________________________________________________________________

"tpmax" <(E-Mail Removed)> wrote in message
news:0A9176FA-F271-4951-AAA4-(E-Mail Removed)...
>I want to automate a row with summary calculations for each worksheet that
>is
> added to my workbook. Is there a macro that would enable me to add a row
> with
> calculations for a series of worksheets? The worksheets will use the same
> format, so that the data will be easily found. I intend to control where
> the
> new worksheets are placed by ensuring they are placed between two hidden
> worksheets.
>
> Thanks.



 
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
Automating new line items for worksheets that will be added? =?Utf-8?B?dHBtYXg=?= Microsoft Excel Programming 0 25th Jun 2007 10:04 PM
Automating the copying of a line mantrid Microsoft Excel Discussion 2 17th Apr 2007 05:48 PM
Automating the copying of a line mantrid Microsoft Excel Programming 2 17th Apr 2007 05:48 PM
Copying columns and automating data updates across worksheets =?Utf-8?B?amts?= Microsoft Excel Misc 6 13th Feb 2007 07:04 PM
Automating copying of data from different worksheets. =?Utf-8?B?c2Fuc2tfMjM=?= Microsoft Excel Worksheet Functions 2 17th May 2005 03:06 PM


Features
 

Advertising
 

Newsgroups
 


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