title: How to check if a Paragraph is in a Table or not in MS-Word macro?
body: <p>The paragraph object in the Word has a property called Range.  Within this Range object has a property called Cells.</p>
  
  <p>For paragraph that are not in a table, this property Paragraph.Range.Cells is set to "".  This can be seen in the Watches window in debug mode.</p>
  
  <p>For paragraph that are in a table, the property Paragraph.Range.Cells has other properties in it, for example it has a property called Count.</p>
  
  <p>I am using this property of Paragraph.Range.Cells to determine if the paragraph is in a table or not.  However, I cant seem to figure out how to test this.</p>
  
  <p>For example, I cannot simply test like this...</p>
  
  <p>If paragraph.Range.Cells &lt;> Null Then.... or even 
  If IsNull(paragraph.Range.Cells) Then ...</p>
  
  <p>It throws a Run-time error '5907' There is no table at this location</p>
  
  <p>So, how would I test for this?  thanks</p>