title: Understanding format of tables in PowerPoint (VBA 2010) (resize text to cell)
body: <p>Following issue:</p>
  
  <p>I declare tbl as Table in VBA. I want to show some tables in PowerPoint.</p>
  
  <p>If the text of the cells are too long, the cells get big and they go beyond the slide limits. I want to avoid that. I just want to resize the text, that means, I just want that the text gets smaller, in order to fit within the cell. That means, cell-table size should not be changed!</p>
  
  <p>How would you do that? I've tried:</p>
  
  <pre><code>ppPres.Slides(NumSlide).Shapes(NumShape).Table.Columns(col).Cells(1).Shape.TextFrame2.AutoSize = msoAutoSizeTextToFitShape
  </code></pre>
  
  <p>without success. Could you please tell me what's wrong and how would you proceed?</p>
  
  <p>The error message is as follows:</p>
  
  <blockquote>
    <p>Run-Time error '2147024809 (80070057)'</p>
    
    <p>The specified value is out of range.</p>
  </blockquote>