title: Use word macro to change three column tables only
body: <p>The following is an excerpt from a macro I am currently using to reformat large documents in word to our company branding.</p>
  
  <pre><code>    Selection.Tables(1).Select
      Selection.Columns(1).Width = CentimetersToPoints(5.46)
      Selection.Columns(2).Width = CentimetersToPoints(10.92)
      Selection.Rows.HeightRule = wdRowHeightAtLeast
      Selection.Rows.Height = CentimetersToPoints(0.8)
  </code></pre>
  
  <p>The documents that I get have now been coming through with three column tables as well as two column tables and I would like these to have all columns 5.46 wide, whereas I need the two column tables to stick with the widths I have specified above to keep all the formatting looking good.</p>
  
  <p>I wanted to put in an "if, then" type statement that says if the table has three columns do this, if the table has two then do this but I don't know how to identify 3 column tables from 2 column tables.</p>