If INSTR doesn't find the character it's looking for, it returns -1. You can't LEFT$ with a negative number, so you'll have to rewrite your code to handle this.