Re: Bottom line of textbox
are your lines separated by anything like new lines or anything as such? or is it simply just a straight paragraph and you need the last line?
You could always split up the the entire text string by either periods or the newlines, and search through the last one for the character your after.
Re: Bottom line of textbox
This should be simple enough.
Code:
Private Sub Command1_Click()
Dim pos As Integer
pos = InStrRev(Text1.Text, vbNewLine)
If pos = 0 Then
MsgBox "The last line is: " & Text1.Text
Else
MsgBox "The last line is: " & Mid(Text1.Text, pos + 2)
End If
End Sub