Hai provato: if VarType(valorenullo) = vbNull