Yes, I noticed that I needed to add that DIM statment (actually added all three), so that's fine now, and I also worked out about pasting into word first so it formats correctly before I paste it into the text editor.

Anyway, still the same error message. Sigh.

Thanks.