Prev: Web form fillup code not working
Next: excel
From: munawar on 6 May 2010 15:53 I created the .vbs file with following code DIM IE DIM ipf Set IE = CreateObject("InternetExplorer.Application") IE.navigate "http://zip4.usps.com/zip4/citytown.jsp" IE.Visible = True While IE.Busy WScript.Sleep 50 Wend Set ipf = IE.document.getElementByID("city") ipf.Value = "redmond" 'fill in the text box Set ipf = IE.document.getElementByID("state") ipf.Value = "WA" 'fill in the text box Set ipf = IE.document.getElementByID("Submit") ipf.Click 'click the submit button 'IE.Quit WScript.Qui munawar rashid wrote: Web form fillup code not working 06-May-10 Hi I tried putting the following code in a .vbs file and executed it, its bombing out with unspecified error in line 12, which is Set ipf = IE.document.getElementByID("city") What is wrong here, why is the code not working Thx Previous Posts In This Thread: Submitted via EggHeadCafe - Software Developer Portal of Choice Excel 2007 Filter Tool http://www.eggheadcafe.com/tutorials/aspnet/ae703d26-58da-423a-a2cb-1f3a46fbea8f/excel-2007-filter-tool.aspx
From: Tom Lavedas on 6 May 2010 16:44 On May 6, 3:53 pm, munawar rashid wrote: > I created the .vbs file with following code > > DIM IE > DIM ipf > > Set IE = CreateObject("InternetExplorer.Application") > IE.navigate "http://zip4.usps.com/zip4/citytown.jsp" > IE.Visible = True > > While IE.Busy > WScript.Sleep 50 > Wend > > Set ipf = IE.document.getElementByID("city") > ipf.Value = "redmond" 'fill in the text box > Set ipf = IE.document.getElementByID("state") > ipf.Value = "WA" 'fill in the text box > Set ipf = IE.document.getElementByID("Submit") > ipf.Click 'click the submit button > 'IE.Quit > > WScript.Qui > > munawar rashid wrote: > > Web form fillup code not working > 06-May-10 > > Hi > > I tried putting the following code in a .vbs file and executed it, its bombing out with unspecified error in line 12, which is > > Set ipf = IE.document.getElementByID("city") > > What is wrong here, why is the code not working > > Thx > > Previous Posts In This Thread: > > Submitted via EggHeadCafe - Software Developer Portal of Choice > Excel 2007 Filter Toolhttp://www.eggheadcafe.com/tutorials/aspnet/ae703d26-58da-423a-a2cb-1... I have no idea why it doesn't work for you - it worked just fine for me just now. _____________________ Tom Lavedas
|
Pages: 1 Prev: Web form fillup code not working Next: excel |