title: Delete all document variables from a .docx file using Word 2007 VBA
body: <p>I need to delete all document variables from a .docx file. I can see here (<a href="http://support.microsoft.com/kb/306281" rel="nofollow">http://support.microsoft.com/kb/306281</a>) that it's easy enough to delete a variable by name, but unfortunately I don't have a list of the variable names. </p>
  
  <p>Is there either:</p>
  
  <ol>
  <li>A way to delete all variables at once?</li>
  <li>If 1 isn't possible, is there a way to get a list of all the variable names that exist in the document, so I can loop across them to delete as shown in the link above?</li>
  </ol>