Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hello I have a spreadsheet, in which I have 3 tables in coloum I:N. Rows of these tables varies depending upon the data in the table. I need a macro which auto sums in the grand total row (Last Row of Each Table) for the data in the respective table.
The code that I am using is giving me an auto sum in the next balnk cell, but I want it to be in Grant Total row only. There may be gaps in the table. As of now I am using the following code: Sub Slide07_Global_AutoSum() For Each NumRange In Columns("I:N").SpecialCells(xlConstants, xlNumbers).Areas SumAddr = NumRange.Address(False, False) NumRange.Offset(NumRange.Count, 0).Resize(1, 1).Formula = "=SUM(" & SumAddr & ")" c = NumRange.Count Next NumRange NoData: Call Slide06_SEMEA End Sub
__________________
Regards Gaurav |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table 2007 display field only in Grand Total | Excel Discussion (Misc queries) | |||
PivotTable Grand Total Error using Calculated Field | Excel Worksheet Functions | |||
Pivot Table Calculated Field using Grand Total | Excel Worksheet Functions | |||
Missing Grand Total for a Calculated Field in a Pivot Table | Excel Worksheet Functions | |||
Pivot Table Calculated Field (Grand total question) | Excel Discussion (Misc queries) |