Hi Andy, I appear to have worked the problem out myself. I replaced the letter s in sm.txt with the letter I wanted and hey presto, it works. Thanks for your interest Laurie Bridger