
It is megaphone time at Chandoo.org. I have a few quick announcements about upcoming training programs & other interesting stuff. Just read on 🙂
1. VBA Classes 2nd Batch from September 5th
Some of you know that Chandoo.org runs an online VBA Class. We are about to finish the classes for first batch and now gearing for 2nd batch. The enrollments for this program are open from September 5th, Monday. For more information, download our course brochure. If you want to join this class, sign-up for our news-letter and I will update you with more details in next few weeks.
2. Good news for our Indian Customers – Now Accepting Credit Cards, Debit Cards, Net-banking and more!
I have a very good news for our customers & readers from India. Finally, I got an Indian payment gateway account so that you can pay for Chandoo.org products (PM Templates, Excel School & Upcoming VBA Classes) in Indian rupee using credit cards, debit cards, net banking & more options. To purchase any of our products click below links:
3. New Excel Formula Crash Course – Coming this Wednesday, 17 August
Excel formulas have confused one too many of us. It took me more than an year to understand simple formulas like IF & VLOOKUP and use them effectively. That is why, I created this course. It is easy to follow, simple to digest and yet power-packed with lots of ideas & information. The aim of this course is to make you a master of Excel formulas in 31 days. The course has 6 modules,
- Formula Basics
- Lookup Formulas
- Text Formulas
- Date & Time Formulas
- Advanced Formulas
- Errors, Auditing & More
For more information, please watch this short video:
4. Excel School Prices Going up!
I have created Excel School online training program in Jan 2010. Ever since, we have trained more than 1500 people thru this program. Every week, I get emails from our students telling me how much they have gained from this program and how they are able to impress everyone at their workplace. During the same time, I have been adding new content to this program to make it perfect. And now time has come to hike the course fees to match the value it delivers. Starting Monday, August 29, Excel School prices will be going up. See the below table to understand new prices. And join us now if you want to save money.
| Option | Old Price | New Price | |
| Excel School ONLINE Option | $67 | $97 | Join Now |
| Excel School DOWNLOAD Option | $97 | $147 | Join Now |
| Excel School DASHBOARDS Option | $197 | $247 | Join Now |
5. Recommended Live Training: Excel Power Analyst Bootcamp in Washington DC, USA on September 19th
My good friend, teacher & fellow Excel blogger, Mike Alexander runs Excel Power Analyst Bootcamps every year. This year, he is doing it on September 19 & 20 in Alexandria, VA (few minutes away from Washington DC). Now, few days back, Mike emailed and asked if I can suggest this program to my readers. I agree with pretty much everything Mike does (except the heart-attack prone bacon recipes he suggests). So here I am recommending his course. I have attended a few webinars Mike did and I can vouch for the amazing knowledge he shares with us. He is a natural teacher and you are going to love the time you spend with him. So if you happen to be near Alexandria (VA) and want to learn Excel, then go for his bootcamp.
Click here to sign-up for Mike’s Excel Power Analyst Bootcamp.
PS: I do not get any money out of this recommendation. However, Mike promised to do a guest lecture in our upcoming VBA Class. But I would have recommended this bootcamp even otherwise 🙂
End of Announcements!
I wish you an awesome week ahead 🙂

















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