Passion, excitement, inspiration or love – whatever you choose to call it, is the key reason we do remarkable things. Take a minute break here, think about the most significant moments in your life.
What is common in all of those moments?
I am sure your answer will be Passion or excitement, love, inspiration.
I want to talk about the latest Batman movie – The Dark Knight, the movie has a production budget of $185 mn [boxofficemojo], but excited millions of people all over the world. There are 130,000 people rating the movie at 10 on 10 (excellent) out of the 194k people who voted at IMDb. The movie grossed $ 390 Mn in the first 3 weeks. Compare this how many companies, institutions, businesses spend millions of dollars without exciting single individual.
Have you excited anyone today? or got excited?
Some of the awesome excel links from the web:
Creating time value of money tables in excel, if you work involves financial calculations like leasing, cash flow analysis then this article on tvm calcs blog can be helpful.
Filter by color, font or active cell’s value in excel 2007 Ron tweaks Excel 2007’s cell based filtering options using VBA to come up with more ways to filter.
Use charts to validate your data tables, Jorge suggests a simple technique to quickly validate data tables, especially if you have lots of data in them. Just fire up a line chart with the data and see if you can find any anomalies, go back and correct your tables if needed. This is very useful if you constantly import data from other sources and work with it.
More on adding target lines your bar charts, Jon at PTS blog provides more alternatives for adding target lines to bar charts to show target vs. actual performance. This can be useful if you build dash boards and need to show more details.
Do you have any excel tips / links, share them with our readers, drop a comment.
Also see:

















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