title: Position cursor at start/end of Word document
body: <p>We are manipulating our Word 2007 documents from .Net using Word Interop. Mostly doing stuff with fields as in:</p>
  
  <pre><code>For Each f In d.Fields
      f.Select()
      //do stuff with fields here            
  Next
  </code></pre>
  
  <p>This leaves the last field in the document selected. </p>
  
  <p>So, for the sake of neatness we would like to position the cursor at the <strong>end</strong> of the document (or even the <strong>start</strong> would be OK).</p>
  
  <p>Googling for the answer doesn't throw up much ... the nearest I can get seems to be suggesting we need to involve ourselves with ranges or bookmarks. There's a <code>GoTo</code> method for the <code>Document</code> object but none of the <code>WdGoToItem</code> options it offers are useful.</p>
  
  <p>Isn't there a simple way to just send the cursor to the end (or start) of document?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Part of my problem was I didn't like leaving the last field selected. Have now realised that I can do </p>
  
  <pre><code>f.Unlink
  </code></pre>
  
  <p>to remove the <code>mergefield</code> and just leave the field text there as plain text. Which is neater, whether or not we also reposition the cursor</p>