Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dd dd is offline
external usenet poster
 
Posts: 95
Default Totals across increasing number of worksheets

Is there a way to sum the range, or array, C14:T22 over an increasing number
of worksheets, displaying the value in the same cell of worksheet "Totals"?

Regards
Dylan Dawson


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Totals across increasing number of worksheets

Sub Ttl()
Dim SumOne As Double, SumAll As Double
Dim i As Integer
Dim ws As Worksheet
Dim rng As Range

For i = 2 To Worksheets.Count
Set rng = Worksheets(i).Range("C14:T22")
SumOne = Application.Sum(rng)
SumAll = SumAll + SumOne
Next
Worksheets("Totals").Range("A1") = SumAll
End Sub

Mike F
"dd" <dd.dd wrote in message
...
Is there a way to sum the range, or array, C14:T22 over an increasing
number
of worksheets, displaying the value in the same cell of worksheet
"Totals"?

Regards
Dylan Dawson




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
Increasing number of rows beyond 65K APKEGEL Setting up and Configuration of Excel 3 May 20th 10 07:55 PM
Increasing memory/no of worksheets in excel Bug289 Excel Discussion (Misc queries) 6 January 4th 07 04:52 PM
Automatically increasing a number by 1 Dave Excel Discussion (Misc queries) 3 August 23rd 06 11:13 PM
Increasing Number David Excel Discussion (Misc queries) 2 March 8th 06 01:40 PM
Adding Ranges, increasing worksheets ZootRot Excel Programming 1 October 23rd 03 02:35 PM


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