excel - Need to sum up worksheets into a "total" sheet but need the ability to be able to add worksheets on demand -
folks,
my first time here gentle.
i have n identically formatted worksheets (with same formulas) in work book. there total-up worksheet sums of data (in same rows/columns) individual worksheets.
i need ability able insert new worksheet (identical in format original n worksheets) , have totals add up.
i use following formula in cells in total-up worksheet:
=sumthem( address(row(), column()))
sumthem following function:
public function sumthem(addy string) double dim ws worksheet dim tots double tots = 0 each ws in activeworkbook.worksheets if ws.name "*+" tots = tots + ws.range(addy).value end if next ws sumthem = tots end function
my simple sumthem function adds cells row/column address (addy) across worksheets worksheet name ends in "+".
this seems work until copy in worksheet (identical first n sheets in format , formulas). none of formulas recompute.
my questions:
- is there better way this?
- why worksheet not recompute.
thanks time, kw
Comments
Post a Comment