Last Saturday our internet connection at home went off. I called the road runner folks hoping to getting it back up, but no luck. We were told to wait till Monday evening before the service personnel could restore the connectivity. Thankfully, we didnt feel all that bored and could spend lot of time talking to each other, playing cards, watching some old dvds, taking lengthy walks inside our apartment community and cooking great food.
What would you do on an internet free weekend?
Here is a list of very good excel articles I found during last week:
Rob found that you can actually create shapes using UDFs (user defined functions). So he used that to create a neat function for drawing incell spark lines. Very useful and simple. [Daily Dose of Excel]
Buy Office 2007 – Ultimate version dirt cheap!!!
If you have .edu email id then Microsoft Ultimate Steal deal is the way for buying MS Office 2007. You can save 91% off the usual price of Office 2007 Ultimate. [via Digital Inspiration]
How to Install add-in : Microsoft Excel 2007
My friend Jon provides a step by step guide to installing add-ins to MS Excel 2007, very useful if you are constantly downloading UDFs / Macros from web and experimenting with them
How much money do you need in your retirement?
Another variation of retirement calculator. Whatever may the version you use, the message is simple: Start saving.
8 Slide making tips you can learn from IKEA
This is not exactly an excel tip, but useful to everyone who makes their living by telling stories, selling ideas.
Like this edition of Excel links? 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