+ Reply to Thread
Results 1 to 11 of 11

Error with Internet explorer while interaction

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Error with Internet explorer while interaction

    Hello everyone
    I am trying to learn how to scrape data and I found a tutorial with this code
    Please Login or Register  to view this content.
    I got error at this line (error 91)
    Please Login or Register  to view this content.
    I appreciate any help
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Error with Internet explorer while interaction


    Hi !

    Bad code …

    Check variable obj !

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Error with Internet explorer while interaction

    Thanks for reply
    If I knew what is bad, I would fix it. I am just take it from a tutorial and I encountered an error and need to know what is the reason of this error and how to fix it

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Error with Internet explorer while interaction


    Please share tutorial link, I want to take a glance to see if it is good or not …

    Did you use a webbrowser inner inspector tool ? If yes from which webbrowser ?

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Error with Internet explorer while interaction

    This is the link
    http://analystcave.com/web-scraping-tutorial/
    As for your question, I have no idea about that? Do you mean View Source in web browsers?

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    Several problems within your code !

    • So this link is not so good for the Do Loop codelines !
    Busy is not enough, you must wait also for IE ReadyState property until set to 4
    as you can read on MSDN site (see official documentation), instead of using Wait …
    See also code samples on this forum threads as well from other forums.

    • How do you find elements id or name ? Using which webbrowser ?
    Last edited by Marc L; 12-11-2016 at 08:50 AM.

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Error with Internet explorer while interaction

    I have updated IE and the first part is ok ... Now I have a problem with Search button which name is "btnK"
    Here's a working code except for the part of the search button
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Error with Internet explorer while interaction

    There is no click button, but a submit form.
    While IE.readyState <> 4: DoEvents: Wend

    IE.Document.forms(0).submit

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Error with Internet explorer while interaction

    You got it Mr. AB33
    Thanks a lot for this wonderful solution. I have searched a lot and all what I reached is workaround to use SendKeys to use "Enter" key
    Thank you very much for great help

  10. #10
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Error with Internet explorer while interaction


    You can also submit the button, works on my side too …

    But you do not understand how IE works ! As IE.Busy is only for the initial load of the webpage, not after a mod like a button click …
    And you will see that when you really try to pilot another webpage !

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Error with Internet explorer while interaction

    Thanks Mr. MarcL for reply and for providing us with more information.. I have learned a lot from you.
    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Interaction with VBA Internet Explorer 9 - Error Frames
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-28-2012, 02:38 PM
  2. [SOLVED] Internet Explorer interaction
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-09-2012, 05:40 PM
  3. Using VBA to control Internet Explorer Error Problems
    By John Richter in forum Excel General
    Replies: 0
    Last Post: 02-20-2012, 05:09 PM
  4. Automate Excel/Internet Explorer Interaction
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2009, 04:20 PM
  5. Visual Basic returning error '438' when writing a value to Internet Explorer
    By srbloom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2009, 06:39 PM
  6. Interaction with Internet explorer using VBA
    By XennnneX in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2008, 12:05 AM
  7. error in script from internet explorer
    By fred6529 in forum Excel General
    Replies: 0
    Last Post: 06-11-2005, 04:05 PM
  8. Interaction with Internet Explorer
    By Ron in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-05-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1