title: How to copy text from one document to another with same formatting?
body: <p>I have this code to copy some text from one document to a new one.</p>
  
  <pre><code>For Each rng In docSource.SpellingErrors
     docNew.Range.InsertAfter rng.text &amp; vbCr
  Next
  </code></pre>
  
  <p>Bus this is not copying the source format.</p>
  
  <p>I'm trying with the following line but I get error </p>
  
  <blockquote>
    <p>Expected function or variable</p>
  </blockquote>
  
  <pre><code>docNew.Range.InsertAfter rng.PasteAndFormat(wdPasteDefault) &amp; vbCr
  </code></pre>
  
  <p>How can I do this? Thanks in advance.</p>
  
  <p>Below some test text with errors.</p>
  
  <pre><code>When you create a Microsoft Word document for other people to read , it's important to spot and correct any speling mistakes
  
  or gramatical errors you've made. You can let Word's spelling and grammmar
  
  checkers suggest corrections automaticaly while you working , or you can check the spelling and gramar in the the file all 
  
  at once when you're finishes writing your document . Microsoft Word 2010 come with some dictionary of standardd grammar and spellings, but they are not comprehensive.
  </code></pre>