title: VBA to engage "browse" button on IE and provide folder location for the file
body: <p>I'm stuck at the point where I need to "upload" the .txt files to IE browser. It seems that calling the button 'browse' through <code>.getelementsbyname</code> does not work [the element in question i.e. the 'browse' button is <code>name="dataFile"</code> [as in the source code below]. Moreover, once 'browse' reacts I need to provide .txt file location and then <code>.click</code> Open on that window. </p>
  
  <p>I would be greatly obliged if someone could guide me towards resolution. </p>
  
  <pre><code>&lt;/td&gt;
  &lt;td valign="top"&gt;
  &lt;div class="edl_radio float-left"&gt;
  &lt;label class="edl_rd"&gt;
  &lt;input type="radio" name="appendOrOverwriteListDataSet" value="appendToProposedListDataSet" checked /&gt;
  &lt;span&gt;&lt;/span&gt;
  &lt;/label&gt;
  &lt;label&gt;Append&lt;/label&gt;
  &lt;/div&gt;
  &lt;div class="edl_radio float-left"&gt;
  &lt;label class="edl_rd"&gt;
  &lt;input type="radio" name="appendOrOverwriteListDataSet" value="overwriteListDataSet"  /&gt;
  &lt;span&gt;&lt;/span&gt;
  &lt;/label&gt;
  &lt;label&gt;
  Replace
  &lt;/label&gt;
  &lt;/div&gt;
  &lt;br class="clearfloat" /&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="label"&gt;
  &lt;/td&gt;
  &lt;td&gt;
  &lt;div class="floatleft"&gt;
  Upload Data File
  &lt;input type="file" name="dataFile" size="27" /&gt;  
  &lt;/div&gt;
  &lt;div class="float-left"&gt;
  &lt;b&gt;OR&lt;/b&gt;&amp;nbsp;&amp;nbsp;
  &lt;/div&gt;
  &lt;div class="floatleft"&gt;
  Enter Data:&amp;nbsp;
  &lt;/div&gt;
  &lt;div class="floatleft"&gt;
  &lt;textarea name="listData" cols="1" style="width:200px; height:50px;"&gt;&lt;/textarea&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;
  &lt;input class="button secondary-btn" type="button" id="upload1" name="upload1" value="Upload" onclick="javascript:processForm(this.form, 3);"/&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>