1.. Go to a web site
2.. Enter the user code (i.e., the macro types it, not the user)
3.. Enter the password (i.e., the macro types it, not the user)
What would the SUB look like?
Any help would be much appreciated.
BobB
sometimes this works, but apparently there is no standard for passing in a
username and password.
--
Regards,
Tom Ogilvy
Bob Benjamin <be...@magma.ca> wrote in message
news:UemdnZMOFcs...@magma.ca...
HTH,
Shockley
Sub Login()
sURL =
"http://edit.my.yahoo.com/config/login?.src=mb&.done=http%3a//messages.yahoo
.com/bbs%3f.mm=FN%26action=r%26board=4687440%26tid=ener%26sid=4687440%26mid=
0&lg=us&.intl=us"
Dim IE As New InternetExplorer
IE.navigate sURL
While (IE.Busy)
DoEvents
Wend
Do
On Error Resume Next
Set htm = IE.Document
Err = 0
If Not htm Is Nothing Then Exit Do
Loop
Do
Set frms = htm.forms(0)
If Not frms Is Nothing Then Exit Do
Loop
IE.Visible = True
For i = 1 To frms.Length
Set frm = frms(i - 1)
Cells(i, 1) = frm.Name
Next i
For i = 1 To frms.Length
Set frm = frms(i - 1)
sTest = frm.Name
If sTest = "login" Then
frm.Value = "myusername"
End If
If sTest = "passwd" Then
frm.Value = "mypassword"
End If
If sTest = ".save" Then
frm.Click
End If
Next i
Set oDoc = Nothing
Set IE = Nothing
End Sub
"Bob Benjamin" <be...@magma.ca> wrote in message
news:UemdnZMOFcs...@magma.ca...
Tools | References
and then scroll down to find "Microsoft Internet Controls" and put a check
in the box and click OK.
Shockley
"shockley" <shoc...@frontiernet.net> wrote in message
news:WD7sb.15824$aW5....@news02.roc.ny...
Thanks.
Bob
"shockley" <shoc...@frontiernet.net> wrote in message
news:AT7sb.15826$aW5....@news02.roc.ny...
Regards,
Shockley
"Bob Benjamin" <be...@magma.ca> wrote in message
news:19qdne6Tr_r...@magma.ca...
For example I have several spreadsheets where source data is extracted
automatically from a secure area of a web site.
Regards
Robert Hind
"Bob Benjamin" <be...@magma.ca> wrote in message
news:UemdnZMOFcs...@magma.ca...
http://login.yahoo.com/config/login?.done=http://messages.yahoo.com&.src=mb
Any other interesting techniques you care to outline would be
appreciated-always looking to expand my horizons.
Shockley
"Robert Hind" <rwh...@iinet.net.au> wrote in message
news:#am5$kaqDH...@TK2MSFTNGP11.phx.gbl...