How can I assign a particular line of text in a multi line text box to a string variable?
Say for example the text box Text1 contains these text:
This is the first line
This is the second line
This is the third line
I would like to assign the text on the third line (i.e."This is the third line") to a variable
It is best that the function does not utilise vbCrLf or carriage return.
Hopefully the function can have the form :
Getline( Text1.Text,2) where Text1.Text is the text inside the textbox and 2 is the content of line 2 i.e. "This is the second line".
So to extract the second line to a variable, the code will be something like:
Thanks a million for the help!