Pbaldy, I figured you might get a kick out of this.
Code:
Sub CyclebothLists()
Dim Clr As InternetExplorer
Dim User, Pass As String
Dim oCell As Object
Dim LstEmpSelect As String
Dim i As Variant
Dim Name As Integer
Dim CurrentList As ListBox
Set Clr = FindIE("https://website")
'Loops next list item name
For Name = 0 To Forms!frmMainnew.lstAnalyst.ListCount - 1
If Forms!frmMainnew.lstAnalyst.Selected(Name) Then
PauseApp 3
Do Until InStr(Clr.Document.Body.innertext, "Adjustment Views") > 0 'checks screen placement
Call SleepIE(Clr)
PauseApp 3
Loop ' end of screen check
With Clr.Document.all
i = 0
For Each oCell In .tags("td")
If oCell.innertext = Forms!frmMainnew.lstAnalyst.Column(1, Name) Then ' TD loop IF
.tags("td").Item(i - 2).all.Item("manageTimesheet").Click
Call SleepIE(Clr)
PauseApp 3
Clr.Navigate "javascript:submitForm('page','timeadmin.populateTimesheet');"
PauseApp 4
Call SleepIE(Clr)
Call eights
Clr.Document.all.Item("timeadmin.timesheetBrowserReturn").Click
Call SleepIE(Clr)
PauseApp 2
Exit For
End If ' End of TD loop
i = i + 1
Next oCell
End With
End If
Call SleepIE(Clr)
Next Name
Set oCell = Nothing
' MsgBox "Complete", , "LIFT MESSAGE"
End Sub
It is looping thru the list box, once it hits a selected item... it interrogates the website (all table data and rows) What do you think?
edit --
and its working flawlessly