If the line is red it means it's a compile error. The reason is what I formulated in my previous post. Please read that again and insert a vbcrLF in the lines that are marked red. Do not look where it can't be found.