Very Quickly,
Chandoo.org is partnering with Pristine to start a free course on financial modeling using excel. If you are interested, take this short survey and tell us what topic you want to learn.
Back Story
One of the advantages of going to a premier MBA college is that you are bound to have good network. Since I started working on my own, I have been looking for ways to collaborate with others in same business (training, consulting) so that I could learn from them, tie up with them or help them. That is why I was naturally excited when I heard from Pristine. It is a training institute started by 2 of my immediate seniors in MBA college – Paramdeep & Pawan along with few others.
Pawan wrote to me a few weeks back asking if I want to collaborate with them in an “Excel Financial Modeling Training Program”. I was naturally excited and agreed to work with them to run a course on Financial Modeling.
How it works?
Here is how it is going to work. We are going to start a FREE Financial Modeling Course thru this blog. We will post 4-6 articles as a series explaining one type of modeling activity. Just like all other awesome articles on Chandoo.org, this free course too will have downloadable examples, kick-ass illustrations and will be a great read.
Towards the end of this free course, we are going to ask you if you are interested in a paid training program. If so, you tell us your name and email address. We will send you information on the course, pricing and methodology as it becomes available. You can join our training then.
But, before we begin the free course, I need to know what topic you want to learn for free. Financial Modeling is a large area (I know this because I dozed enough in my accounting and finance classes in MBA. They were the best naps) and knowing what works best for you can be very useful. So I have prepared a short survey asking you what you are interested to learn.
Take Excel Financial Modeling – Online Survey.
Who is this for?
This program is for people who do (or need to do) financial modeling on regular basis. It is for people who have knowledge of excel and basic financial understanding and gearing to build a complete model using excel to evaluate, lets say a project.
About Pristine:
Pristine is a training institute based in India offering courses on CFA, FRM and countless other financial stuff. They have more than 300,000 hours of training experience and have conducted financial modeling courses in various investment banks in India. The founders are my immediate seniors in b-school and I know them personally.
As you can already guess, the financial modeling course we are going to do is a joint venture. So if we make money out of it, we split that. If we fail, we just get off the ground and start running, again.
So go ahead and take the survey. Tell us what you would like to learn in the free financial modeling course.

















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