Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Help with HTML/EXCEL integration

Posted by: JGupte Jan 30 2019, 08:45 PM

Hi All,

I am using Excel to drive a procedure (using VB) that logs me on to a web page, then downloads a file.

I have it running in foreground, using SendKeys to parse the password to the web page, but need it to run in background when the computer is locked at night as it is a lengthy job that impacts other users if run during the day.

I found the code I need to use

ie.Document.Forms(0).all("User").Value = "me"
ie.Document.Forms(0).all("Password").Value = "mypasssword"
ie.Document.Forms(0).submit

but this does not correspond to the HTML found on the web page.

Can anyone please give me the tag for the password (the Username and company name are given as part of the web page address).

This is the web page I am trying to log into.

http://www.teambinder.com/TeamBinder5/Logon/Default.aspx?&tcUserId=JGUPTE&tcCmpId=ALS

Any help would be appreciated.

JG

Posted by: pandy Jan 31 2019, 06:44 AM

The name of the password field? It's 'txtPassword'. You can just view source.

CODE

<td nowrap="nowrap" class="Bold">
    Password</td>
<td>&nbsp;</td>
<td>
    <input name="txtPassword" type="password" maxlength="20" id="txtPassword" tabindex="3" />
</td>

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)