title: MS Word - Hiding a Row in a Table depending on Content Control value
body: <p>I have a very long word file, containing several tables.
  Each table contains a list of items that may or may not be applicable to the user.</p>
  
  <p>I am trying to find a way of hiding/masking rows that have not been filled by the user.</p>
  
  <p>To do so, I was thinking of writing a sub that go through the entire document lookinf for content controls, then checks if the contentcontrol.text="NULL" and then deletes the table row (or hides it by setting the row height to 0).</p>
  
  <p>Any ideas?</p>
  
  <p>Below my partial attempt</p>
  
  <pre><code>Sub HideRows()
  Dim d As Document
  Set d = ActiveDocument
  Dim cc As ContentControl
  
  For Each cc In d.ContentControls         
      If cc.Range.Text = "NULL" Then
  
          'Delete the table row where this content control is located
  
  
      End If
  Next
  End Sub
  </code></pre>