📜  excel vba 选项比较文本 - VBA 代码示例

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

代码示例1
'Removes case sensitivity
Option Compare Text            ' a < B
'Adds case sensitivity
Option Compare Binary        ' A < B < a < b
'Compare
Debug.Print StrComp(string1, string2, vbUseCompareOption) 'Microsoft Access only
Debug.Print StrComp(string1, string2, vbBinaryCompare)      'case sensitive
Debug.Print StrComp(string1, string2, vbTextCompare)      'case insensitive