Hello,
This used to work fine (in ie6) to get a reference to an IE window and pull a value off of the document:
Dim objIE
Set objIE = shell.Windows.Item
If (Not objIE Is Nothing) Then
'Set session variable and submit the form.
session = objIE.document.forms("DWISDBFORM").elements("SESSIONID").value
End If
'Object Cleanup
Set objIE = Nothing
Once installing IE7, it no longer works (objIE is nothing). I figured it probably had something to do with the tabs, but no documentation was to be found. I tried changing the "Set objIE = ..." line to the following:
Set objIE = objShellWindows.item(shell.windows.count - 1)
This works on some machines, but not others. Can anyone help me out here It is a fairly critical application in our business.
JFK