title: Convert Text to Table VBA MS Word - AutoFit to Contents not working
body: <p>I am trying to automate conversion of text to a table.  When I selected "Auto-fit to contents" while recording a macro, I got the following code:</p>
  
  <pre><code>    WordBasic.TextToTable ConvertFrom:=1, NumColumns:=2, NumRows:=6, _
      InitialColWidth:=wdAutoPosition, Format:=0, Apply:=1184, AutoFit:=1, _
      SetDefault:=0, Word8:=0, Style:="Table Grid"
  </code></pre>
  
  <p>However, when I run this code as part of the unchanged recorded macro, it does not auto-fit to contents.  Anyone have any ideas where I went wrong?</p>
  
  <p>I want it to autofit based on content, but the macro recorder won't record that part. I'm in ms word 2007. I've googled for 30 minutes but to no avail on what to do.</p>