Unable to comment further without proper understanding of what could be this strange issue.
Regards, Sam On Fri, Oct 21, 2011 at 1:51 AM, Prakash Gusain <gusainprak...@gmail.com>wrote: > Sam, > > this is still giving me the same error. > > My code worked on one of my friends machine but not on mine. I > believe there is some problem with the settings in my VB editor and > that is what I want to figure out. > > Prakash > > On Oct 20, 4:05 pm, Sam Mathai Chacko <samde...@gmail.com> wrote: > > Doesn't seem to have a problem at my side. > > > > Anyway, slightly modified the code, removed unwanted lines > > > > Sub FillInternetForm() > > > > Dim objIE As Object > > Set objIE = CreateObject("InternetExplorer.Application") > > > > objIE.Navigate " > http://www.cvent.com/RFP/NewSupplierRequest.aspx?vtt=1" > > objIE.Visible = True > > > > Do While objIE.busy: Loop > > > > objIE.Document.getElementById("txtSupplierName").Value = "PRAKASH" > > > > End Sub > > > > Regards, > > > > Sam Mathai Chack (GL) > > > > On Fri, Oct 21, 2011 at 12:32 AM, Prakash Gusain < > gusainprak...@gmail.com>wrote: > > > > > > > > > > > > > Sub FillInternetForm() > > > Dim objIE As Object > > > Set objIE = CreateObject("InternetExplorer.Application") > > > > > objIE.Navigate "http://www.cvent.com/RFP/NewSupplierRequest.aspx? > > > vtt=1" > > > objIE.Visible = True > > > > > Do While objIE.busy > > > While objIE.busy > > > DoEvents > > > Wend > > > Loop > > > > > objIE.Document.getElementById("txtSupplierName").Value = "PRAKASH" > > > > > Do While objIE.busy > > > While objIE.busy > > > DoEvents > > > Wend > > > Loop > > > > > End Sub > > > > > this code is giving me run time error with message as "Method > > > 'Document' of object 'IWebBrowser2' failed. > > > > > please help > > > > > -- > > > > > > ---------------------------------------------------------------------------------- > > > Some important links for excel users: > > > 1. Follow us on TWITTER for tips tricks and links : > > >http://twitter.com/exceldailytip > > > 2. Join our LinkedIN group @http://www.linkedin.com/groups?gid=1871310 > > > 3. Excel tutorials athttp://www.excel-macros.blogspot.com > > > 4. Learn VBA Macros athttp://www.quickvba.blogspot.com > > > 5. Excel Tips and Tricks athttp://exceldailytip.blogspot.com > > > > > To post to this group, send email to excel-macros@googlegroups.com > > > > > <><><><><><><><><><><><><><><><><><><><><><> > > > Like our page on facebook , Just follow below link > > >http://www.facebook.com/discussexcel > > > > -- > > Sam Mathai Chacko- Hide quoted text - > > > > - Show quoted text - > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- Sam Mathai Chacko -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel