try adding RichEdit1->SelStart = pos; RichEdit1->SelLength = text.Length(); Shawn Dyer *************************************************************** Any opinions expressed above are my own and do not necessarily represent those of H&R Block. ***************************************************************