Totals across increasing number of worksheets

  • Thread starter Thread starter dd
  • Start date Start date
D

dd

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top