Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Navigate through webpages
hi i have written a code where it opens a website and enter in by giving a
username and password. Then there is a serach box. I need to enter some data into that search box which i have done the problem is now i am unable to submit it. And once it enter into the next page it should click on a particular link and should open that link from which i take the necessary data. Please some one help me on this. Private Sub CommandButton1_Click() Set ie = CreateObject("InternetExplorer.Application") With ie .Visible = True .navigate "http://www.moodys.com/cust/default.asp" .FullScreen = False Do Until .readyState = 4: DoEvents: Loop Do While .busy: DoEvents: Loop Set mytextfield = .document.all.Item("userid") mytextfield.Value = "amitavah" Set mytextfield1 = .document.all.Item("passwd") mytextfield1.Value = "amitava" ie.document.forms("form1").submit Set mytextfield2 = .document.all.Item("searchQuery") mytextfield2.Value = "Aquila Inc" ie.document.forms(0).submit End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
hyperlinks to webpages in excel worksheet help! | Excel Worksheet Functions | |||
Need Help with Excel Webpages | Excel Discussion (Misc queries) | |||
Excel and Webpages | Excel Discussion (Misc queries) | |||
Publishing Worksheets as Webpages | Excel Programming | |||
Extract data from different webpages | Excel Programming |