title: Macro to field code
body: <p>I currently have a Normal.dot macro that counts the amount of words in the current section:</p>
  
  <pre><code>Sub SectionWordCount()
    Dim SectionWordCount As String
    SectionWordCount = ActiveDocument.Sections _
    (Selection.Information(wdActiveEndSectionNumber)). _
      Range.ComputeStatistics(wdStatisticWords)
  MsgBox "The current section has " &amp; SectionWordCount &amp; " words."
  End Sub
  </code></pre>
  
  <p>Would it be possible to link this macro to a "field code" in my document? Or make this count appear in the document using any other form of VBA voodoo?</p>
  
  <p>I'm using Word 2013 on Windows 8.</p>
  
  <p>Thanks again, everyone.</p>