title: Using vba to copy the contents of a word document into another word document
body: <p>I haven't used VB for years, so please forgive me if this turns out to be obvious. I'm trying to write a word vba macro for use in a template which will display a userform and then import the contents of fileA.docx, fileB.docx, or fileC.docx depending on the userform. (After that I'm going to use bookmarks to fill in some form data, I don't know if that's relevant). Files A, B, and C will contain text with some basic formatting such as lists, but nothing fancy.</p>
  
  <p>The solutions I've seen online can copy the contents of file to a new file, but ideally I would like to import the entirety of one of those files into the new, currently unnamed file that I'm getting from the template. I think where I'm running into problems is with switching the selection to one of those files, and then back to the new unnamed document, though I could use a hand to make sure I'm copying correctly as well.</p>
  
  <hr>
  
  <p>Update: I was making things too hard, though the answers here got me pointed in the right direction (thanks!). In the end I just did</p>
  
  <pre><code>ThisDocument.Activate
  
  Selection.InsertFile("fileA")
  </code></pre>
  
  <p>which gives me the raw dump of everything that I wanted.</p>