j844929
Active Member
- Joined
- Aug 18, 2002
- Messages
- 423
Hi,
I have successfully entered Usernames and Passwords into all sorts of websites, but I'm a bit stuck on this one. When you navigate to the URL, A pop-up window appears asking for a Username and Password entry. I have tried the following, but it didn't work and now I'm left scratching my head. The URL is provided in the code.
I have successfully entered Usernames and Passwords into all sorts of websites, but I'm a bit stuck on this one. When you navigate to the URL, A pop-up window appears asking for a Username and Password entry. I have tried the following, but it didn't work and now I'm left scratching my head. The URL is provided in the code.
Code:
Sub Login_To_Website()
Set myIE = CreateObject("InternetExplorer.Application")
myIE.Navigate URL:="https://www.toga.ngtuk.co.uk/toga"
On Error Resume Next
AppActivate "Connect to www.toga.ngtuk.co.uk", 1
Do Until .ReadyState = 4
DoEvents
.Visible = True
With .Document.forms("Connect to www.toga.ngtuk.co.uk")
.USER.Value = "Username"
.Password.Value = "Password"
.submit
End With
End Sub
[code]
Can anyone provide a solution that actually works?
Any help on this would be greatly appreciated.
Tim