Last week I asked you “would you be interested in an online excel training program?” and quite a few of you have responded with “YES”.
So I decided to start excel school. This is a 12 week online training program that will explain various MS Excel concepts to you in an easy to understand format. I am calling it “school” because the program will be fun, exciting and playful – just like school. We will learn from each other as much as we learn from the course itself.

When I announced about it, a lot of you asked me various questions, like what topics Excel School will cover, when does it start, how long, how much, what is the method of teaching etc. etc.
Answering all these questions in a post is insane, so I made a small video (20 mins) where you can find answers to almost all of your questions.
Please watch this short video to understand Excel School Program
(secret: you can see me in the video)
Click here if you cannot see this video
Here is the gist of it, if you are in a hurry:
- The course will cover almost all topics relevant for an intermediate level excel user
- It is for 15 weeks (12 weeks + 3 bonus weeks)
- It will start in Feb 3rd week or so.
- You can download the material (videos, files, examples) from time to time.
- You can take the lessons whenever you are free (no live classes, just online).
- Almost each week, there will be some home work.
- There will be 2 class projects, one after 5th week, and one at the end.
- There will be 30 day money back guarantee and all the usual goodies
- The pricing is $100 one time or $40 if you make 3 monthly payments.
If this sounds like something you would enjoy, please tell me your name and E-mail ID and I will send you a free lesson.
Click here if you cannot see the form.
PS: We are still cool if you are not up for this. 🙂

















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