you can StrComp for strings. Watch out for case e.g.
"mahogany" not = "Mahogany"
if LCase$(strWoodType) = "mahogany"
if 0 = Strcomp(strWoodType,"mahogany",vbTectCompare) ' case insensitive
Yes, Lcase$, Left$, Right$ etc are faster rhan LCase, Left, Right etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.