its cause you've change the "team*" to be "Team*" LCASE changes to lower case, therefore this will never be true, leave the t as lower case.

uncomment the dim statements

if at the top of the code you say Option Compare Text, then there is no need for the Lcase bit.