I have a text box set to multi-line. I want to be able to read the information one line a time and evaluate.
Does anyone have any suggestions how to do this? In hind site I should have used a list box...
Thanks
Chrissy
Printable View
I have a text box set to multi-line. I want to be able to read the information one line a time and evaluate.
Does anyone have any suggestions how to do this? In hind site I should have used a list box...
Thanks
Chrissy
Dim strText() As String
strText = Split(Text1.Text, vbCrLf)
MsgBox "Line #3 is: " & strText(2) 'strText array is zero-based so first line has index 0.
Thanks baja_yu... that was just what I was looking for!