Er... one more thing! Don't forget to set Text1's MultiLine property to TRUE, otherwise Mark Sreeves' code will make little difference.