title: Convert HTML response to WORD
body: <p>In MS Word i have a macro that sends the request to the web server, and then return the data html
  My macro</p>
  
  <pre><code>Sub Macro1()
  
  Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
  
  'server authorization (need)
  URL = "http://example.com/search.php"
  Dim loginData As String
  loginData = "login=123&amp;password=123"
  objHTTP.Open "POST", URL, False
  objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
  objHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
  objHTTP.Send loginData
  
  
  'request
  URL = "http://example.com/search.php"
  objHTTP.Open "POST", URL, False
  objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
  objHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
  objHTTP.Send ("var1=value&amp;var2=value&amp;var3=value")
  
  strResponse = objHTTP.responseText
  Selection.TypeText Text:= strResponse 
  
  End Sub
  </code></pre>
  
  <p>Now in Word document my macro inserted response as simple text</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html;charset=windows-1251"&gt;
      &lt;title&gt;Результат поиска&lt;/title&gt;
      &lt;link href="css/print.css" rel="stylesheet" type="text/css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div style="text-align: center;"&gt;
          &lt;span style="font-weight: bold; font-size: 110%;"&gt;Search result&lt;/span&gt;
      &lt;/div&gt;
      &lt;table id=result&gt;
          &lt;tr&gt;
              &lt;th&gt;Some text&lt;/th&gt;
              &lt;th&gt;Some text&lt;/th&gt;
              &lt;th&gt;Some text&lt;/th&gt;
              &lt;th&gt;Some text&lt;/th&gt;
              &lt;th&gt;Some text&lt;/th&gt;
              &lt;th&gt;Some text&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Some text&lt;/td&gt;
              &lt;td class='leftAlign'&gt;Some text&lt;br&gt;Some textSome textSome text&lt;/td&gt;
              &lt;td&gt;Some text&lt;/td&gt;
              &lt;td class='leftAlign'&gt;Some text&lt;br&gt;Some textSome textSome textSome textSome text&lt;/td&gt;
              &lt;td&gt;Some text&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Please help me, how to convert my response (table id="result") in a normal WORD-table? Like this
  normal Word table
  <a href="https://i.stack.imgur.com/6f1j4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6f1j4.png" alt="enter image description here"></a></p>