Animate Bar Charts - animate transition of charts

gsimmons2005

New Member
Joined
Aug 17, 2005
Messages
19
Anyone know how to take a simple bar chart, with say a value of 10 and through the press of a button have it animate and shrink in size down to 5 for example. In other words, I have tons of bars in a "before" case and also an "after" case and I want a macro or code to show the transition between those two.

Any Ideas?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
You can do this w/o code using iterative calculations. Of course, that has its own set of issues... ;-)

To use iteration, select Tools | Options... | Calculation tab. Check the Iteration checkbox and set the Maximum Iterations to 1.

Now, suppose your 2 data sets are in A and B starting with row 1. Then, in C1 enter the formula =MOD(C1+1,2). Also, create a named formula (Insert | Name > Define...)
YVals =OFFSET(Sheet2!$A$1,0,Sheet2!$C$1,COUNTA(Sheet2!$A:$A),1)

Create a chart using this named formula. For how see
Names in Charts
http://www.tushar-mehta.com/excel/newsgroups/dynamic_charts/names_in_charts.html

Now, each time you press F9 (or otherwise recalculate the worksheet), the chart will toggle the range it shows between A and B.
 
Upvote 0

Forum statistics

Threads
1,224,396
Messages
6,178,396
Members
452,844
Latest member
Shebl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top