title: VBA Word: Inserting Text Form Fields at a Specified Location
body: <p>I am new to vba and developing a document that prompts the user to select a variable number of values from a combo box list.  After selecting the values, I want to insert them in order onto the document itself as a Text Form Field.  Let me show you how I generally am trying to get it to work.</p>
  
  <p>First, the user selects values:</p>
  
  <pre><code> [a]
   [b]
   [c]
  </code></pre>
  
  <p>And selects an "OK" button.  Then, I am attempting to add these selected values into the word document starting at a bookmark.  Value "a" should be inserted followed by a space character followed by a blank Text Form Field, followed by two carriage returns.  In the end the result should look something like this:</p>
  
  <pre><code> [bookmark]
   [a]'_'[blank_a]'^p'
   '^p'
   [b]'_'[blank_b]'^p'
   '^p'
   [c]'_'[blank_c]'^p'
   '^p'
  </code></pre>
  
  <p>Where [bookmark] is an invisible bookmark, '_' is a space, and '^p' is a carriage return.  Currently my code is as follows:</p>
  
  <pre><code> Dim myRange As Range
   Set myRange = ActiveDocument.Range(Start:=ActiveDocument.Bookmarks("START").Range.Start, _
   End:=ActiveDocument.Bookmarks("END").Range.End)
  
   For i = 1 To NUMBER_OF_RESPONSES
       Selection.FormFields.Add(myRange, wdFieldFormTextInput).Name = "question_" &amp; i
       Selection.FormFields.Add(myRange, wdFieldFormTextInput).Result = "response_" &amp; i
   Next i
  </code></pre>
  
  <p>Naturally, there are no insertions of literal spaces or carriage returns yet as I have not figured out how to do it.  The result of this code is as follows:</p>
  
  <pre><code> [START][blank_c][c][blank_b][b][blank_a][a][END]
  </code></pre>
  
  <p>I would like this order reversed and for there to be the aforementioned formatting inserted.  Any pointers on how to go about doing it?</p>