How to adress and change (to a sum) a bar in a Waterfall-Chart in Excel VBA? -


i have waterfall-chart in excel.

current situation

in picture, can see structure. first bar overall budget. second bar specific budget branche. following bars expenses or potential expenses number differ time time. last bar remaining budget.

as can see in picture, when add expense, bar number 8, before remaining budget, stays bar defined "sum". need vba-code set second , last bar sum.

i never worked charts in excel vba, , have no idea how solve problem, couldn't find on internet or @ stackoverflow waterfall charts.

    sub makro2()     activesheet.shapes.range(array("chart 6")).select     end sub 

when used macro recorder while changing bar 8 "no sum" , bar 9 "sum" selection recorded.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -