excel - How to change values for any number of cells with one spin button? -


there number of cells containing formulas =sum(a1;a2),..., =sum(n1;n2).

now want 1 spin button changes formulas @ once =sum(a1;a2;a3),...,=sum(n1;n2;n3).

there 12 different forumlas each cell.

"of course" formulas quite more complex why solution should abstract possible , not taylored solve sum-forumla-problem...

maybe possible via combination of spin button , dropdown lists containing different formulas? have no clue of excel :(

how done? (i don't know vba unfortunately)

thanks :-)

if ranges in sequence can use following function in vba editor , save file excel macro enabled workbook in office-2007-onward versions:

function autorange(rngfrom range, rngto integer)     dim integer     dim r range     dim cell1, cell2, rng range      set cell1 = cells(rngfrom.row, rngfrom.column)     set cell2 = cells(rngfrom.row + rngto - 1, rngfrom.column)     set rng = range(cell1, cell2)          each r in rng             = + r         next     autorange = end function 

the function can used in format given in following image, used 4 cells range here:

enter image description here

you have change green specified cell value i.e. how cells in range in sequence downward. if not recalculate on changing green cell's value, press ctrl+alt+f9. try it, thanks...


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -