Ok so I've got this code:
If txtsearch.Value = Range("B2").Value Then
Range("B2").Select
Sheet1.Activate
frmuser1.Hide
frmuser.Hide
End If
If txtsearch was not in the same case as Range("B2"), is there anyway for them to be made equal?
Ok so I've got this code:
If txtsearch.Value = Range("B2").Value Then
Range("B2").Select
Sheet1.Activate
frmuser1.Hide
frmuser.Hide
End If
If txtsearch was not in the same case as Range("B2"), is there anyway for them to be made equal?
Hello Nollaig,
To make a case insensitive comparison you can convert both strings to either upper case or lower case by using UCase(String) or LCase(String) operators.
Example:
If LCase(txtsearch.Value) = LCase(Range("B2").Value) Then
Hope this answers your question,
Leith Ross
Last edited by Leith Ross; 03-20-2005 at 07:07 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks