title: How to make a Word table fit the page neatly with VBA
body: <p>I'd like to do something like: <code>AutoFitBehavior(wdAutoFitWindow)</code> on a Word table but:</p>
  
  <ol>
  <li>I don't want the the text in the cells to wrap (so I use <code>Rows.HeightRule = wdRowHeightExactly</code>).</li>
  <li>If the text is too large for the table to fit on the page, I'd like the largest cells to have <code>FitText</code> applied until it does</li>
  <li>It needs to handle tables with merged cells</li>
  </ol>
  
  <p>I'll post my own attempt as an answer but I wonder if there is a better way?</p>