title: VBA Replace Only leading and trailing line breaks
body: <p>I have a text as follows stored in a variable <code>myStringVariable</code>:</p>
  <pre><code>&quot;
  
  
      About this item 
      This fits your . 
      Make sure this fits by entering your model number. 
  
  &quot;
  </code></pre>
  <p>Sorry I had to use <code>&quot;&quot;</code> above to display the leading and lagging line breaks I have in my cells which are generated though VBA macro.</p>
  <p>How do I get rid of leading and lagging line breaks to get the following:</p>
  <pre><code>    About this item 
      This fits your . 
      Make sure this fits by entering your model number. 
  </code></pre>
  <p>I am not sure how to approach this.</p>
  <p>Edit:</p>
  <pre><code>Replace(myStringVariable, vbNewLine, &quot;&quot;)
  </code></pre>
  <p>will replace all line breaks. So, I need a <code>Trim</code> function kind of solution I think.</p>