title: Powerpoint table size from Matlab
body: <p>I want to fill in a powerpoint (I'm working on 2007) table with data from Matlab (2010a).</p>
  
  <p>For that, I'm using inside MATLAB:</p>
  
  <blockquote>
  <pre><code>% Open powerpoint with handle
  ppH = actxserver('PowerPoint.Application');
  
  % Add new presentation
  presH = ppH.Presentation.Add;
  
  % Add blank slide
  blankSlide = presH.SlideMaster.CustomLayouts.Item(7);
  slideH = presH.Slides.AddSlide(1,blankSlide);
  
  % Create 10x5 table
  tableH = slideH.Shapes.AddTable(10,5,10,10,200,200);
  </code></pre>
  </blockquote>
  
  <p>Ok so, now I want to change cell's height and width. I've tried so far with no success:</p>
  
  <blockquote>
  <pre><code>tableH.Table.Cell(1,1).Shape.Width = 95;
  tableH.Table.Columns(1).Shape.Width = 95;
  tableH.Table.Columns(1).Width = 95;
  tableH.Table.Cell(1,1).Parent.Columns(1).Width = 95;
  slideH.Shapes(1).Table.Columns(1).Width = 95;
  </code></pre>
  </blockquote>
  
  <p>Do you know how to do this?</p>
  
  <p>DBS.</p>