You could also use
But for a lot of lines it might be a bit slow.Code:Dim Lns() As String Lns() = Split(Text1.Text, vbNewLine) MsgBox "There are " & UBound(Lns()) + 1 & " lines in textbox 1"
|
Results 1 to 9 of 9
Threaded View
|
Click Here to Expand Forum to Full Width |