Try this in the immediate window
a$="abcd"
?strcomp("ABCD",a$)
It (correctly) produces -1 for me.
Look up StrComp function in VBHelp to check all the options Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first
'There are 10 kinds of people in the world: those who understand binary, and those who don't.'