I'm trying to automate the uploading of an excel document to a particular webpage. I can't link it as it requires an account. There is a form with a an browse section (of type=file so I can't just set the value) and an upload button that uses the value of that input.
I can navigate to click the browse button, and I can click the upload button, but when I click the browse button a file explorer window called "Choose File to Upload" pops up and means I can't interact with any other IE window and pauses my VBA code until it is closed, which means I can't automatically pass a file path to it.
The relevant HTML on the page is
<form method="post" name="uploadSkillForm" ENCTYPE="multipart/form-data" action='uploadSkills.do?operation=upload'>
<tr>
</tr>
<tr class="text1">
</tr>
<tr width="100%">
<td colspan="100%">
<table width="100%">
<tr>
<th align="left" colspan=3 width="60%">
<input type="file" name="uploadedFile" size="34" id="filePath" class="buttonStyle" style="height:20px"/>
<input type="button" name="upload" class="buttonStyle" value="Upload" onclick="javascript:fnUploadData()">
</th>
</tr>
</table>
</td>
</tr>
Ideally I just want to be able to keep the VBA running and interact with the dialog box to put in the file path, but any way to get the value set to the path would do.
The VBA currently just opens the webpage and clicks the button so there is no point posting it.
Any help would be really appreciated!