Jackblack1
Active Member
- Joined
- Feb 10, 2004
- Messages
- 266
Hi all
Sorry about the other thread....figure it had a relationship, but anywho,
I have worked a on the macro a little but still have problem trying to figure out how to make it work. I can log into a website using the username and password but now I get to the opening page. Starting from the opening page I need to tab over to a tab name reporting. If you were to use the tab button it would 7 tabs to get to the reporting, I tried Send Keys but they do not work, aslo I tried something from another post.
Sub test()
Set ie = CreateObject("InternetExplorer.application")
ie.Visible = True
ie.navigate ("https://www.example.com)<----- not real site
Do
If ie.readyState = 4 Then
ie.Visible = True
Exit Do
Else
DoEvents
End If
Loop
ie.document.forms(0).all("Username").Value = "mahonse"
ie.document.forms(0).all("Password").Value = "example"
ie.document.forms(0).submit
Application.Wait (Now + TimeValue("00:00:12"))
Set myTextField = .document.all.Item("Reporting")
ie.document.forms(0).submit
End Sub
Sorry about the other thread....figure it had a relationship, but anywho,

I have worked a on the macro a little but still have problem trying to figure out how to make it work. I can log into a website using the username and password but now I get to the opening page. Starting from the opening page I need to tab over to a tab name reporting. If you were to use the tab button it would 7 tabs to get to the reporting, I tried Send Keys but they do not work, aslo I tried something from another post.
Sub test()
Set ie = CreateObject("InternetExplorer.application")
ie.Visible = True
ie.navigate ("https://www.example.com)<----- not real site
Do
If ie.readyState = 4 Then
ie.Visible = True
Exit Do
Else
DoEvents
End If
Loop
ie.document.forms(0).all("Username").Value = "mahonse"
ie.document.forms(0).all("Password").Value = "example"
ie.document.forms(0).submit
Application.Wait (Now + TimeValue("00:00:12"))
Set myTextField = .document.all.Item("Reporting")
ie.document.forms(0).submit
End Sub