Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 49946

case sensitive string comparison

$
0
0
Hi I am using strcomp method to compare the login id provided in the userform with the login id already present in the excel sheet

I want to make this search case sensitive

if i use Login ID is ABC and the excel sheet as abc, it should not allow me to login.

If StrComp(Trim(lgtxtbxlid.Value), Trim(varlid), vbTextCompare) = 0 Then

i have even tried vbbinarycompare still it didnot work

Viewing all articles
Browse latest Browse all 49946

Trending Articles