internet explorer - VBA code to interact with specific IE window that is already open -


I have to find out how to extract VBA to interact with a specific IE window, which is already Is open

My process here:.

When I open IE, navigate to the website, enter your user name and click on PW, click on a new IE window opens I use to enter member number and for membership information Search

I am trying to create a VBA script which will interact with the IE window that opens after successfully logging (starting to automate some more worldly tasks I have seen many tutorials online to see how VBA has to open a new IE window, and then interact with it. However, I am really struggling to get information about how to select a specific already open IE window and interact with it.

I have tried to see this as a quick test whether I can select the correct IE window as an object on which I can talk.

sub-getIE () as a slower object, in the form of Owin object, object set as IE = CreateObject ("Shell.Application") in sh.Windows for each Owin Then TypeName (oWin.document) = "HTMLDocument" then the end then the next MsgBox IE.document.URL set for the end sub IE = Owin exit

the message box appears and the initial IE shows the URL for the window, but I do not know how to get it to select the IE window, which I usually get the member

I used to have many technical classes before when I was in school, but it is late because I have turned some technical muscles to welcome any kind of help. Will be done!

What I use here, it calculates the number of IE's open examples, and then every example Steps through and determines the URL and the title of the web page. After this, you can compare title or URL comparison of title or URL. The following examples compare the title using the "Like" function, but like I said you can compare the URL if you want, besides that, you do not have a title or URL that changes you "=" Instead of "like"

  marker = 0 set objShell = CreateObject ("Shell.Application can be used to see") IE_count = objShell.Windows.Count for x = 0 (to IE_count - 1) Error resume next Next 'Sometimes more web pages are counted compared to my_url = objShell.Windows (X). Document.Location my_title = objShell.Windows (X). Document. If the title is like my _title "XYZ" & amp; "*" Then to find 'if' the desired web page is already set open ie ie objShell.Windows (x) marker = 1 or else exit the marker = then MsgBox ("a matching webpage Was not found ") either msgbox (" a matching webpage was found ") if  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -