📜  vba 区分大小写 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:54.233000             🧑  作者: Mango

代码示例1
'Removes case sensitivity
Option Compare Text
'Adds case sensitivity
Option Compare Binary
'Compare
debug.print StrComp(string1, string2, vbUseCompareOption) 'with choosen option
debug.print StrComp(string1, string2, vbBinaryCompare)      'case sensitive
debug.print StrComp(string1, string2, vbTextCompare)      'case insensitive