IE Automation - make a open IE window an object

PullingHairOut

New Member
Joined
Apr 12, 2011
Messages
1
Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
First time poster so please let me know if I’ve done anything i shouldn't. <o:p></o:p>
<o:p> </o:p>
I’ve been thru the forums and can’t find a solution to this specific problem.<o:p></o:p>
<o:p></o:p>
I've been trying on and off for over a year to do as described below and never find a working solution... anywhere! Forums, MSDN, etc... All have close to what i need but never end up being able to do what I need.<o:p></o:p>
<o:p></o:p>
Summary:<o:p></o:p>
- Launch IE window and login to a secure site (using createobject) - no issues at this step<o:p></o:p>
- Launch a web based application (Citrix) - no issues at this step<o:p></o:p>
- While the app launches an "app is loading" box comes up, followed by cmd window, then lastly an IE window (this is the window I want to have as an object so I can automate it). - No issues at this step<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
At this point currently i have to go to a reporting site and open an excel file report, then Alt+F11 to open VBA (Citrix Side), and i paste the code into the VBA window and run it. - No issues at this step<o:p></o:p>
<o:p></o:p>
What I want to accomplish is to be able to make the newly opened IE window (the web based app) an object like any other IE window so i can run my code without needing to paste my code into a new VBA window on the Citrix side. This is preventing me from fully automating my data extraction from the reporting sites.<o:p></o:p>
<o:p> </o:p>
NOTE: I cannot save any type of file in the Citrix environment, which is the reason for automating in the first place.<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
What I have currently coded to give info about the new window:<o:p></o:p>
<o:p> </o:p>
- I find the hWnd for the window and bring it to the top which I can then do things to the window itself, just not within the window (i.e.; enter a URL)<o:p></o:p>
- Played with sendkeys but doesn’t give enough functionality to be able to do what I need (i.e.; enter a URL)<o:p></o:p>
- Tried creating an object that launches the app but I imagine because of the loading window, and cmd window, it can’t have the app window (3<SUP>rd</SUP> window in the launch sequence) as the IE object.<o:p></o:p>
- And a few other futile attempts all were stabs in the dark, which I knew wouldn’t work but had to try, just in case.<o:p></o:p>
<o:p> </o:p>
Hope I’ve given enough info to be able to get help from someone, if I haven’t just let me know and I’ll gladly go into more details. Except for details of the citrix environment – server address and names, details about the applications, etc… these are confidential and I can’t give out that information, but since what I need to do is control an IE window they shouldn’t be needed anyway.<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
Thanks in advance for any help you can provide… even if the help is to say this can’t be done (with an explanation as to why it can’t be done – if possible).<o:p></o:p>
Sincerely,<o:p></o:p>
PullingHairOut
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,224,590
Messages
6,179,752
Members
452,940
Latest member
rootytrip

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
Back
Top