Take all the spaces out from inside your quotes. Then change the name ofthe routine from this:Private Sub TextBox1_KeyPress(ByVal KeyAscii AsMSForms.ReturnInteger)To this:Private Sub TextBox1_AfterUpdate