Public Function StrComp(ByVal String_1 As String, ByVal String_2 As String, Optional ByVal Comparemode As Long = 0) As Long
Compares two strings and returns a number indicating the order of these strings: -1: String 1 < String 2, 0: String 1 and String 2 are equal, 1: String 1 > String 2
SendDebug StrComp("Bingo", "Bingo") 'Prints 0
SendDebug StrComp("bingo", "BINGO") 'Prints 1
SendDebug StrComp("bingo", "BINGO", vbTextCompare) 'Prints 0, case insensitive, these are equal.