# 4th of July Fireworks – an Excel animation for you

Posted on July 4th, 2014 in Charts and Graphs , VBA Macros - 31 comments

To all our readers & friends from USA,

I wish you a happy, fun & safe 4th of July.

For the last 4th of July (2013), we (Jo, kids & I) were in USA. We went to Washington DC to meet up a few friends for that weekend. And we had one of the most memorable evenings of our lives when we went to national mall area in the evening to watch beautifully choreographed fireworks. Kids really loved the amazing display of fire-crackers and enthusiasm. (here is a pic, taken by Nakshu, our daughter)

While we all are back in India this time, it doesn’t mean we cant celebrate 4th of July. So I made some fireworks. In Excel of course.

Here is a little Excel animation I made for all of us.

### 4th of July Fireworks – Excel animation

First watch this quick demo (<15 secs)

I got the Excel fireworks idea very late in the evening. So the file is not very clean. But easy to understand and play with. Download it here.

Lets spare the detailed tutorial for another day. Here is a quick summary.

1. Lets assume a fire work goes in a straight line at an arbitrary angle between 75 to 105 degrees (90 being vertical) to a random height.
2. Lets assume the firework effect creates 40 spokes of a perfect circle whose radius grows as the firework explodes.
3. So we create a scatter plot with lines & spokes.
4. Thru VBA, we increase the length of line from 0% to 100%, thus creating firework shooting to sky effect.
5. Then, we increase the radius of circle from 0% to 100% to create firework explosion effect.
6. Finally we change the previous line height & circle radius back to 0% before showing next firework.
7. At last, we toggle the display visibility of message (“Have a fun 4th of July”)

That is all. Here are a few previous examples that detail some of these techniques.

So thats all for now. Enjoy your 4th of July weekend and lets meet Monday with something awesome.

 CP013: Is this a FIFA worldcup of late goals, lets ask Excel [How to analyze data to answer questions like these…] Winners of state migration dashboard contest
 Written by Chandoo Tags: animation, charting, downloads, Learn Excel, scatter plot, Spoke Chart, VBA, videos Home: Chandoo.org Main Page ? Doubt: Ask an Excel Question

### 31 Responses to “4th of July Fireworks – an Excel animation for you”

1. Cesarino says:

Fireworks in an Excel sheet? It's pure art.
Congratulations Chandoo.

• Chandan Mishra says:

Chandoo....pure imagination...I never thought of FIREWORK in excel and that without any coding. Salute to your thinking.

I have had been learning from your blog. I sense confidence and can use my imagination as well in designing different dashboard application. Thanks.

2. You are the man Chandoo!, Great and funny macro!
cheers from Peru! And also Happy 4th of July to everyone in the States from Lima Peru!

3. Kristen says:

Very cool, thanks, Chandoo! Happy 4th!

4. Sanjeev says:

You are awesome man.... @chandoo..
Only Chandoo can think and do like this.................
Awesome.....

5. Guruvardhan says:

Brilliant piece of digital art... π Am sure this actually inspires many to look at how this works ~~~ as creative as ever!

6. Bharani says:

Coolllll

7. Subrahmanyam Matta says:

Wonderful...............

8. Manuel Mtz says:

Chandoo!!!

You're the man!!!

I'd improved in excel usage quite a bit. Thanks again.

My best regards for You and your family from Mexico!!!!

Best regards,

Manuel "Manny" Martinez

PS: Mtz is a contraction on my last name

• Maxime Manuel says:

I have learned a lot with Chandoo too.
Manuel is my last name too. π

9. Donald Cartin says:

As always, you are AWESOME!!!

10. Hanif says:

Well done

11. Rina says:

Nice Chandoo,
100% Awesome, two thumbs up for you

• amir says:

hi
Are you a Muslim? in Indonesia?

12. TITO JOSE says:

=UPPER(CHAR(117)&CHAR(32)&CHAR(114)&CHAR(32)&CHAR(114)&CHAR(32)&CHAR(116)&CHAR(104)&CHAR(101)&CHAR(32)&CHAR(98)&CHAR(101)&CHAR(115)&CHAR(116))&"!!!!!"

13. Jude says:

Its Beautiful

Awesome chandoo,
You are the grateful man !!!!!!

It is very helpful for me thanking you.

15. Nitish says:

simply awesome, wonderful

16. Maxime Manuel says:

Dear Chandoo,
I use to wonder if you and Mynda Traecy are human. But today you just proved that you are some kind of alien with Excel technology. (Laughs)
This is mind blowing!!!!!!!!!!!!!!!!!!!!!!!!!

17. Johnno says:

Nicely done Chandoo. (I just couldn't resist taking your great work and adding a fireworks sound effect.)

18. Naina says:

Wow. Never imagined animation in Excel! This is too good.

19. Nitin verma says:

grt chandooooooooooooooooooo

20. Tom says:

I love the animation of the fireworks, but when i download the excel file and try to open it, it comes up with the message "This files is not in a recognizable format". It will still open, but it is just a bunch of garbage characters on the page, and there is no vba modules at that point. I have opened other samples indicated on this page such as "Creating a spoke chart in Excel" and that opens just fine. Perhaps this is a corrupted file we are downloading.

• Chandoo says:

Hi Tom,

I just checked and the file works alright. Can you please try again? I think it should work alright in Excel 2010 or above.

21. Connie says:

made a piano in excel that records and playback, also include features like changing the key of the song and echo effect

22. Dennis Del Villar says:

this is a masterpiece!!! great work in excel...really awesome!!!

23. Vera Chote says:

This was just awesome. I keep learning new things from you. Keep it up!

24. Will says:

Excel is an amazing tool with your guidance, the world is witness to exactly that. Thank you!

25. William Kiarie says:

Chandoo you have nailed it.
Here in Kenya we say -"heshima" to imply hats-off.
Bravo!

26. Matthew says:

Thanks Chandoo. How can I change the picture? I've tried: Ribbon>Page Layout>Selection Pane, but can't see the image to change.

 CP013: Is this a FIFA worldcup of late goals, lets ask Excel [How to analyze data to answer questions like these…] Winners of state migration dashboard contest