abbaddon223
Registered User.
- Local time
- Today, 03:50
- Joined
- Mar 13, 2010
- Messages
- 162
Hi,
I'm trying to put a value into two fields in a web form. The code I'm using is:
Dim ie As Object
Set ie = CreateObject("internetexplorer.application")
ie.Visible = True
ie.navigate "URL HERE"
While ie.Busy
DoEvents
Wend
While ie.Document.ReadyState <> "Complete"
DoEvents
Wend
ie.Document.getElementByID("phone_login").Value = "XXX"
I've also tried getElementByName too with no joy. Can anyone see what I am doing wrong please? :banghead:
/></td><td align="center" valign="middle"> phone login </td></tr>
<tr><td align="left" colspan="2"><font size="1"> </font></td></tr>
<tr><td align="right">Phone Login: </td><td align="left"><input type="text"
name="phone_login" size="10" maxlength="20" value="" /></td></tr>
<tr><td align="right">Phone Password: </td><td align="left"><input type="password" name="phone_pass" size="10" maxlength="20" value="" /></td></tr>
I'm trying to put a value into two fields in a web form. The code I'm using is:
Dim ie As Object
Set ie = CreateObject("internetexplorer.application")
ie.Visible = True
ie.navigate "URL HERE"
While ie.Busy
DoEvents
Wend
While ie.Document.ReadyState <> "Complete"
DoEvents
Wend
ie.Document.getElementByID("phone_login").Value = "XXX"
I've also tried getElementByName too with no joy. Can anyone see what I am doing wrong please? :banghead:
/></td><td align="center" valign="middle"> phone login </td></tr>
<tr><td align="left" colspan="2"><font size="1"> </font></td></tr>
<tr><td align="right">Phone Login: </td><td align="left"><input type="text"
name="phone_login" size="10" maxlength="20" value="" /></td></tr>
<tr><td align="right">Phone Password: </td><td align="left"><input type="password" name="phone_pass" size="10" maxlength="20" value="" /></td></tr>