Navigating through Links

mahukumar

New Member
Joined
Jul 25, 2006
Messages
11
Hi,
The following code gets into our intranet site by logging(till here my code works) in there i need to select the Hyperlink " Industrial Orders" then i need to select "EXT & OGE & Supply then i need to select the list box "Fiscal Week" and need to change the week. Can anyone help me in this please.

Looking forward for ur help..

The code...
Private Sub CommandButton1_Click()
Dim ie As Object
Dim qrySht As Worksheet
On Error GoTo errHandler
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Visible = True
.Navigate "http://digitalcockpit.indsys.ge.com/digitalcockpit/sso/mycockpit/Home.jsp"

Do Until .ReadyState = 4: DoEvents: Loop
Do While .busy: DoEvents: Loop

Set mytextfield = .document.all.Item("user")
mytextfield.Value = "501159828"
Set mytextfield1 = .document.all.Item("password")
mytextfield1.Value = "LSi@@73vaRII"
ie.document.forms(0).submit

Do Until .ReadyState = 4: DoEvents: Loop
Do While .busy: DoEvents: Loop
'====================================

With .document
For i = 0 To .links.Length - 1
' If InStrB(2, .links(i).innerText, "Home") Then
If InStr(1, .links(i), "Industrial Orders") Then
ie.Navigate .links(i).href
Do While ie.ReadyState <> 4: DoEvents: Loop
Do While ie.busy: DoEvents: Loop


Exit For
End If
Next i
End With
Set doc = ie.document
GetAllTables2 doc




End With
errHandler:
ie.Quit: Set ie = Nothing

End Sub
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,141,757
Messages
5,708,346
Members
421,566
Latest member
7Nabisco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top