Thanks for the speedy reply Alimonster
thats great!! However I have another problem now I need to write the contents of this memo into a txt file. I've figured out how to open a txt file to the memo but saving seems to be tricky at the moment i can create a new file but the contents of the memo never appears in it. At the moment I'm attempting this by using a save dialog.

thanks again

Derek