attention everyone: you should never ever be using "" to mean an empty string. use the constant vbNullString.
"" makes the computer generate a null string
vbNullString simply is a null string
break the "" habit
but, before you change all your If statements, consider this:
is slower thanVB Code:
If StrTemp = vbNullString Then
so code accordinglyVB Code:
If LenB(StrTemp) = 0 Then
that is all




Reply With Quote