Thanks but the code you gave me yields a problem. When I try to change the cursor position and enter a single character, it will immediately shift my cursor to the end of the text.