This post is part of our chartbusters series.
Ever since I was a child, I was fascinated by Paris (and Eiffel Tower). So much so that I even took french lessons during my post graduation in the hopes of one day traveling to the romantic land.
Recently, I had opportunity to visit Paris, albeit for just a few hours (I had a 12 hour lay-over in Paris between flights). I went to see the Eiffel Tower and it looked just as beautiful and majestic as it did in my imaginations.
But this is not a travel blog, it is a charting and excel community. So I have something for you as well.
During my visit to Eiffel tower, I took the stairs to 2nd floor and along the way they have a handful of visualizations explaining the tower. I found them quite interesting and well made. Here, I have listed down 4 simple, yet very effective visualization lessons for all of us.
Lesson 1: Compare with known things in your charts
Eiffel tower is a huge tourist attraction with distinguished history. But you have to tell about it to scores of visitors everyday in easy to understand manner. Comparison is a very effective technique. It raises the curiosity and connects well with audience.
For eg. see how they have explained the fact that “Eiffel tower used 60 tonnes of paint”.

Lesson 2: Get creative, don’t always fallback on bar / pie charts
We all know that bar charts are very effective. But too many bars would make the charts look bland. Experimentation could lead to some creative solutions to bar (or pie) fatigue. [Related: 5 ways to dress up your charts]
For eg. see how they have compared the height of Eiffel tower with other familiar landmarks (it is still a bar chart, but creatively implemented)

Lesson 3: Sometimes just numbers will do
While charts add a lot of value (and provide insight), sometimes you want to limit yourself to just numbers.
For eg. they have shown the number 336 in large font along with an illustration of flood-lights to tell us that 336 floodlights light up the tower in the night.

Lesson 4: Focus on the the tower, not on charts
This, probably is the most important lesson of all. We are all here to build our own Eiffel tower and show it off to others. So it is important to focus on the tower, the charts are secondary.

I have made a small presentation with various visualizations showcased on the Eiffel Tower, each one teaches a valuable lesson on charting and story-telling. Take a look at it below:
if you are not able to view it in feed reader / e-mail, click here
Other charting lessons:

















6 Responses to “Make VBA String Comparisons Case In-sensitive [Quick Tip]”
Another way to test if Target.Value equal a string constant without regard to letter casing is to use the StrCmp function...
If StrComp("yes", Target.Value, vbTextCompare) = 0 Then
' Do something
End If
That's a cool way to compare. i just converted my values to strings and used the above code to compare. worked nicely
Thanks!
In case that option just needs to be used for a single comparison, you could use
If InStr(1, "yes", Target.Value, vbTextCompare) Then
'do something
End If
as well.
Nice tip, thanks! I never even thought to think there might be an easier way.
Regarding Chronology of VB in general, the Option Compare pragma appears at the very beginning of VB, way before classes and objects arrive (with VB6 - around 2000).
Today StrComp() and InStr() function offers a more local way to compare, fully object, thus more consistent with object programming (even if VB is still interpreted).
My only question here is : "what if you want to binary compare locally with re-entering functions or concurrency (with events) ?". This will lead to a real nightmare and probably a big nasty mess to debug.
By the way, congrats for you Millions/month visits 🙂
This is nice article.
I used these examples to help my understanding. Even Instr is similar to Find but it can be case sensitive and also case insensitive.
Hope the examples below help.
Public Sub CaseSensitive2()
If InStr(1, "Look in this string", "look", vbBinaryCompare) = 0 Then
MsgBox "woops, no match"
Else
MsgBox "at least one match"
End If
End Sub
Public Sub CaseSensitive()
If InStr("Look in this string", "look") = 0 Then
MsgBox "woops, no match"
Else
MsgBox "at least one match"
End If
End Sub
Public Sub NotCaseSensitive()
'doing alot of case insensitive searching and whatnot, you can put Option Compare Text
If InStr(1, "Look in this string", "look", vbTextCompare) = 0 Then
MsgBox "woops, no match"
Else
MsgBox "at least one match"
End If
End Sub