Dim Txt As String Txt = Left$(Text1.Text, 60) If Len(Txt) = 60 And Right$(Txt, 1) <> " " Then Text2.Text = Left$(Txt, InStrRev(Txt, " ")) Else Text2.Text = Txt End If
Dim Phrase As String, Pos As Integer Phrase = Text1.Text Pos = InstrRev(Phrase, " ", 60) Text2.Text = Mid(Phrase, Pos + 1) Text1.Text = Left(Phrase, Pos - 1)