title: Import lines of code
body: <p>Can we read scripts or lines of code to a module in <a href="/questions/tagged/vba" class="post-tag" title="show questions tagged &#39;vba&#39;" rel="tag">vba</a>? Like we have the include function in <a href="/questions/tagged/php" class="post-tag" title="show questions tagged &#39;php&#39;" rel="tag">php</a>. </p>
  
  <p>For example:</p>
  
  <p>We store this in Excel somewhere and call the range as xyz</p>
  
  <pre><code>line 1 of code
  line 2 of code
  line 3 of code
  </code></pre>
  
  <p>Then while running a macro we call this like</p>
  
  <pre><code>Sub my_macro()
    xyz
  End Sub
  </code></pre>
  
  <p>Basically I want to run a few lines of code repetitively but don't want to create another macro and pass the parameters.</p>