uppercase and lowercase letters made equivalent

Is there a way in VBA for Excel to make uppercase letters equivalent to lowercase ones

Otherwise, comparing strings of the same letters but different capitalization results in no match

Thanks,

Antonio



Answer this question

uppercase and lowercase letters made equivalent

  • aLee89

    Hi Derek, thank you for your clarification. I suspected that.

    To apply your suggestion I guess that the UCase function is probably the best way to go.

    Regards,

    Antonio


  • Support

    Yeah UCase or LCase, your preference.

  • sohman

    no, character's A and a have completely different ASCII code/Unicode values. The compare method generally has a parameter to ignore case but VBA doesn't have that option. All I can suggest is create uppercase or lowercase copies of the string and compare the copies rather than the originals.



  • uppercase and lowercase letters made equivalent