Here is a cool count-down timer application made in VBA to remind you about our VBAClasses registration closing time!

I know it is blindingly awesome. So I will give you a few seconds before reading further.
….
Back already? Great.
I was thinking of ways to tell you that you have got less than 3 days to join our VBA Class. Then it struck me, why not make an Excel workbook to tell you how much time you have got? So I did just that.
Here is a video demo of how the VBA application works (watch on YouTube):
Download the VBA Classes Count-down Timer Workbook:
Click here to download the workbook. Please enable macros to see it.
PS: You must drag and drop this file in to Excel 2007 or above to see it.
How does the Count-down Timer Work?
First, I must tell you about its limitations:
- This workbook assumes that your computer is located at the hotspot (or city) you have chosen.
- The current time is fetched from your computer’s local time using NOW() formula.
Now, the basic construction of this workbook can be broken down to 3 parts:
- Hotspot / City Selection
- Countdown Timer
- Formatting
Hotspot / City Selection:
- I took an outline map of world and put it in an empty sheet. On top of this I have added 9 hotspots by drawing nine circles.
- I have named these hotspots spot1, spot2…,spot9
- As you can guess, each of these spots correspond to one time zone, from PST to Australian Time.
- I have assigned macros to each of them. The macros would just modify a cell named valSpot with the name of the spot on which I clicked.
- Based on the clicked spot, I fetched the corresponding closing time from a table like this:

- Then, I calculated the time left by subtracting current time from closing time.
- A similar logic is used for City selection.
Countdown timer:
- I have inserted a check box and linked it to a cell named showTimer
- I have also assigned a macro startTimer to the checkbox.
- The startTimer macro would call a different macro named – countDownTime()
- In this, I wrote a while loop that would check if the showTimer is true and ask Excel to update the currentTime once every second
- The code can be examined from the downloaded file.
Formatting:
I am leaving this to your imagination.
Bottom line: Join our VBA Classes
Of course, the whole point of this is very simple.
If you want to learn VBA, then please join our VBA classes. We will be closing registrations in 3 more days. After that we will be busy for next few months teaching VBA to those of you who joined us.
Click here to join our VBA Classes.
PS: When you join our VBA Class, you get to learn how this timer app is constructed in a detailed 40 minute lesson. That is just one of the many lessons in our class. So, join us already.

















8 Responses to “Introducing PHD Sparkline Maker – Dead Simple way to Create Excel Sparklines”
This looks like it could be very useful for a project I'm putting together right now, thank you so much. Quick & silly question, how do I copy & paste the sparkline as a picture?
Question answered. For anyone else:
Select chart>Hold Shift key & select Edit/Copy Picture>Paste
[...] more information about PHD Sparkline Maker, please read this article and to learn more about Sparklines, read this article from Microsoft Excel 2010 blog. Also there [...]
Am I right in thinking that the y-axis is set automatically by excel?
That makes it possible to get the column chart not to start at zero.
Andy - yes, it is currently set to 'auto', which defaults to a zero base for positive values, but you can change that by left-clicking the chart, then choosing (in Excel 2007):
"Chart Tools/Layout/Axes/Primary Vertical Axis/More Primary Vertical Axis Options"
PUBLIC SERVICE ANNOUNCEMENT: When manually editing a chart's minimum/maximum axis values, PLEASE be sure there's a valid reason and that doing so won't skew the message shown by the data (e.g. by exaggerating differences). If in doubt, go back and read Tufte. (W.W.T.D.?)
[...] gridlines, axis, legend, titles, labels etc.) and resize it so that it fits nicely in a cell [example]. This is the easiest and cleanest way to get sparklines in earlier versions of excel. However this [...]
thanks for the work creating the template!!!!
looks good