This is working for me:
Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.Navigate("
www.levelextreme.com")
while oIE.Busy: wend ' wait for page to load...
oIE.Document.All("login2").value="XXXXXXXXXXXXXXX"
oIE.Document.All("Password").value="YYYYYYYYYYY"
oIE.Document.Forms(0).Submit
>This VB Script no longer works:
>-------------------------------
>
>' UTLogin.vbs
>
>Set oIE = CreateObject("InternetExplorer.Application")
>
>oIE.Visible = True
>
>oIE.Navigate("
www.levelextreme.com")
>
>while oIE.Busy: wend ' wait for page to load...
>
>while oIE.Document.ReadyState <> "complete": wend
>
>oIE.Document.Forms(0).Username.Value = "XXXX"
>
>oIE.Document.Forms(0).Password.Value = "XXXXXX"
>
>oIE.Document.Forms(0).Submit
>
>-----------------------------------------------------------
>
>The error message says that this line is the problem:
>
>oIE.Document.Forms(0).Username.Value = "XXXX"
>
>"Object doesn't support this property or method..."
>
>Any suggestions?
>Thanks,
>Terry Harris
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com