My heartiest Diwali wishes to all our readers.
The spirit of Diwali is to encourage people to spread joy, celebrate good things and discard darkness (evil). These ideas are universal. So let me wish you a very happy Diwali.
Diwali, festival of lights, is celebrated in the month of October / November. It is one of my favorite festivals since childhood. A time when all family members get together, celebrate all the good in their life, laugh and light a few fire crackers (fire works).
This year, our kids (Nishanth & Nakshatra) too are excited about the festival. They are eager to light diyas (small lamps), watch the fire works and enjoy. Naturally I do not feel like opening Excel.
But then…,
Sometime during my morning coffee, I thought “hey, why not create a small Diwali greeting using Excel?”
So here we go.
Happy Diwali Animated Chart
See the chart demo here:
How does it work?
Well, that is for you to figure out. I am too lazy to lift the full veil for you. But here are some clues:
- The greeting is just a bubble chart
- Few bubbles are for the tinkling stars
- Few more for the diyas
- Background VBA just modifies the bubble size thru a simple scaling factor
- For more, see this: Animated Hurricane Sandy Chart
Download and play with this
Click here to download the animated Diwali greeting & play with it. Examine the code & formulas to understand how this is created.
Do you like this Chart?
Do you like this chart? Area you able to figure out how this is made? Please share your ideas & suggestions using comments.
If you are feeling adventurous, create your own animation (using Excel of courses) and share it with us all 🙂
Want to create such animated charts – Read on
Animation is a powerful way to attract user attention. Check out these pages to learn more.
- Journey of Hurricane Sandy – Animated Chart
- 3D Dancing pendulums using Excel Charts & VBA
- Designing a clock using Excel
- Animation with out macros [for fun]
Want more? Consider our VBA course
If you want to learn more about animation & other VBA techniques, consider joining our online VBA classes. In a few weeks, you can master all aspects of Excel VBA & Macros.
8 Responses to “Happy Diwali [Animated Chart inside]”
Very nice mate. Happy New Year!
It's the 14th already in Australia, so the first day was yesterday, but this morning we've just had a total eclipse of the sun. It was interesting reading your explanation of Diwali and then seeing that happen!
Happy Diwali back to you and your family...
Many Happy Diwali returns to you...
You are truly an excel Guru....
I like it! Nice idea of having the stars twinkle by 2 series.
i don't understand please share can anyone share the idea about this article
Thanks !!
please explain me or upload a video to explain the macro. Also please guide me how to start learning macros.
Dear Amita,
Here is the script,
Sub animateStars() 'start a sub to animate the stars
[isPlaying] = Not [isPlaying] ' identify the action
Dim direction As Integer 'set a variabel it called direction, you may create another variabel such 'x' or ' y ' etc.
direction = 1 'create the constanta of the direction
Do While [isPlaying] ' begin looping playing here untill the other statement met their task
[valZoom] = [valZoom] + direction 'valzoom is stated for the lowest value of its zoom, here programmer re turn to zero
If [valZoom] = [maxScale] Or [valZoom] = 0 Then direction = direction * -1 'here how the zoom works, when the value zoom return to maxscale, or valzoom, the value will return to direction
DoEvents 'do task
Loop 'statement to loop
End Sub
'IMHO
What is password for un-protect sheet?