Hi,
I use the macro below (thanks to excelforum!) to get the sum of items (G6) in alleys (variable sheets -> k sheets) of a department (here Fruits & veg, identified in B5 of each alley sheets)
It gets me the right total but if someone modifies anything in G6 later on (which has to happen several times), it will not be taken into account in the total Fruits & veg sheet. Therefore, is it possible to get the macro writing an equivalent to =sum(firstk:lastk!G6) instead of the value numsum, knowing that the sheets of each departments would systematically be next to one another? In addition to live adaptations, it would save me many hours thanks to copy-paste formula.
Thanks in advance for any indication
Bookmarks