title: Splitting a string of a multiline textbox by lines
body: <p>I want to split the text of a textbox after a specific amount of visible lines.</p>
  
  <p>I've found some codes that "allows that", but all of them consider the lines by the "vbCrLf" parameter, but i want to split using the visible lines of a multiline textbox.</p>
  
  <p>To make it more clear to understand, consider a multiline textbox with the following text:</p>
  
  <p>"The history of textbooks dates back to civilizations of ancient history. For example, Ancient Greeks wrote texts intended for education. The modern textbook has its roots in the standardization made possible by the printing press. Johannes Gutenberg himself may have printed editions of Ars Minor, a schoolbook on Latin grammar by Aelius Donatus. Early textbooks were used by tutors and teachers, who used the books as instructional aids (e.g., alphabet books), as well as individuals who taught themselves."</p>
  
  <p>When i use the <code>Textbox.Linecount</code> function it returns the number 6 because the textbox shows six lines (which depends on the size of the control), but if i use a function like <code>strText = Split(TextBox.Text, vbCrLf)</code> it will return 1, because there is only one <code>vbCrLf</code>. But i need to split the text into two textbox considering the visible lines of the control, something like what happens in page breaks of MS Word.</p>
  
  <p>For a better visual explanation, please look at the attached image.</p>
  
  <p>Example
  <img src="https://i.stack.imgur.com/YuhVv.png" alt="Example"></p>