title: VBA code to update textarea
body: <p>I need to update a text area of an HTML page. I am using below code.</p>
  
  <pre><code>Set hcol = doc.getElementsByTagName("textarea")
      For Each txt In hcol
          If txt.Name = Module Then
              txt.innerText = Mark_Text
              Sheets("Sheet1").Range("E" &amp; i).Value = "Done"
              Exit For
          Else
              Sheets("Sheet1").Range("E" &amp; i).Value = "Module not found"
          End If
      Next
  </code></pre>
  
  <p>After the above code is successfully completed, I use below code to update the webpage.</p>
  
  <pre><code>Set hcol = doc.getElementsByTagName("input")
          For Each inp In hcol
              If inp.Value = "Update Configuration" Then
                  inp.Click
                  Delay 3
                  Exit For
              End If
          Next
  </code></pre>
  
  <p>Once the update is done, when I go back to the webpage the text is not getting updated. Below is the view source details for the webpage</p>
  
  <pre><code>&lt;td class="InputTitle" rowspan="3"&gt;Marketing Text&lt;/td&gt;
  &lt;td class="InputCell" colspan="3" rowspan="3"&gt;
  &lt;textarea name="MarketingText;;1" id="MarketingText;;1" onfocus="workingText = this.value" 
    onblur="updateTextValue(this, &amp;#39;MarketingText&amp;#39;);" 
    style="font:normal 11px Arial;width:300px;" rows="4"&gt;
  &lt;/textarea&gt;&lt;/td&gt;
  </code></pre>
  
  <p>My problem seems to be similar to the one mentioned in the this link:
  <a href="https://stackoverflow.com/questions/25398036/update-text-in-textarea-on-webpage-using-vba">please help me to write vba/vb6 code to update rich textbox</a></p>
  
  <p>I've already tried both the solutions provided in the above link but still it doesn't work.</p>
  
  <p>Please help</p>