Chandoo uses WordPress as the blogging engine at Chandoo.org.
The WordPress system includes a HTML enabled post engine, meaning that users can post any valid HTML Code and the WordPress engine will attempt to interpret and present what has been posted.
I need to note that the engine used by Chandoo.org posts and the Chandoo.org/Forums posts are slightly different. The engine used by the Chandoo.org/Forums uses a limited subset of the HTML Codes.
Chandoo does give us a small clue at the bottom of a new post window in the Chandoo.org/Forums that we can use codes in the comments:
How do I use these codes
When entering your post or response simply put the appropriate code in front of the block of text you want it to apply to and close the code at the end of the block
You type: This is in <Strong> Bold </Strong>.
WordPress Displays: This is in Bold.
So What codes Can I use
The following table highlights some of the more common HTML codes that are available for use in post comments.
Codes that work in both Chandoo.org and Chandoo.org Forums
Codes that will only work in Chandoo.org posts.
The following codes will not work in the Chandoo.org Forums
Animated PIctures
Animation can be added to a picture by including a link to an Animated GIF file.
This is only available in the Chandoo.org posts.
WARNING !
The old saying: “Less is More”, is very applicable here.
Just because you can use lots of Fancy HTML in your post, doesn’t mean you should.
Please limit your artistic expressions or face having your post edited or deleted.
Examples
The example HTML codes used above aren’t available to copy and paste above, as they are actually pictures of the codes.
Had I used the real codes, they wouldn,t display the codes, but would display the text after the codes have been applied.
However all the codes are available in the attached HTML Examples file.
Software and Picture Caches
Image Capture: I use the Snipping Tool that comes free with Windows Vista/Win 07. Goto Start, All Programs, Accessories to find the Snipping Tool.
Image Editing: Chandoo and I both use Paint.net. Paint.NET is a free download available at www.paint.net
I also use CorelDRAW and Corel Photo Paint www.corel.com
Animated Gif: Chandoo and I both use TechSmith’s Camtasia Studio for capturing sequences to animated GIF files.
Image Sharing: I use the free TinyPic web site for the storage of pictures shown on Chandoo.org
Where Can I Learn More About HTML?
This post isn’t meant as a HTML Primer/Reference.
There are many other HTML codes that area available to do lots of other formatting, like Marquees, Scroll Boxes and Multi Column layouts.
If you want to learn more about HTML codes have a look at the following links:
http://en.wikipedia.org/wiki/HTML
http://en.wikipedia.org/wiki/Html_codes
There are lots of examples of HTML codes available on the web:
http://www.quackit.com/html/codes/
http://www.w3schools.com/html/html_examples.asp























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