In VBA get rid of the case sensitivity when comparing words?

后端 未结 4 1152
清酒与你
清酒与你 2020-12-08 06:58

I am working on an VBA program which would allow the user to type an address and find the location by matching elements of the address with a database.

Unfortunatel

4条回答
  •  既然无缘
    2020-12-08 07:28

    It is a bit of hack but will do the task.

    Function equalsIgnoreCase(str1 As String, str2 As String) As Boolean
        equalsIgnoreCase = LCase(str1) = LCase(str2)
    End Function
    

提交回复
热议问题