title: Update Word cross-references using VB.NET
body: <p>I want to update all the cross-references on an existing Word Document using a VB.net application.  </p>
  
  <p>For example, my word document (.docm)(I write comments between /-- --/ for understanding) :  </p>
  
  <p>My Document title : TEST TO UPDATE<br>
  /--this title is in the BOOKMARK named "TITLE1"--/  </p>
  
  <p>The document title is : { REF TITLE1 \h }<br>
  /--{ REF TITLE1 \h } is the code for the cross-reference that refers to the bookmark "TITLE1"--/<br>
  /--This text is in the header of my document--/ </p>
  
  <p>I use a VB.net application to change the document title :<br>
  Below my code :  </p>
  
  <pre><code>Imports Microsoft.Office.Interop
  
  Public Sub UpdateWord()
      Dim oWord As Word.Application
      Dim oDoc As Word.Document
  
      'Start Word and open the document template.
      oWord = CreateObject("Word.Application")
      oWord.Visible = False
      oDoc = oWord.Documents.Open(Path_Word_Document)
  
      oDoc.Bookmarks.Item("TITLE1").Range.Text = "My New Title"  
  
      oWord.Documents.Save()
      oWord.Documents.Close()
      oWord.Quit()
  End Sub  
  </code></pre>
  
  <p>When I launch this sub, my document title is updated, but the cross-reference keep the old title value.</p>
  
  <p>Do you know how I have to do to update the cross-reference in my VB.net sub.</p>
  
  <p>Thanks</p>
  
  <p>I use MS Word 2010, Visual Studio 2010 (.NET Framework 3.5) on Win7.</p>