+ Reply to Thread
Results 1 to 6 of 6

Extracting value from internet gives Run-time error 19

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Seoul, Korea
    MS-Off Ver
    Excel 2013, Excel 2016
    Posts
    14

    Exclamation Extracting value from internet gives Run-time error 19

    Hello guys,

    I am trying to extract the family names of plants from http://www.theplantlist.org/ and put them in B column corresponding to the respective names of plants on column A. I tried writing VBA code but ended up getting "Run-time error- 91".
    Note: I mistakenly wrote "Run-time error 19" as this Thread title!!
    Would you please look up my code and correct if not write up so that desired result can be achieved?

    Please Login or Register  to view this content.
    Data format (problem):

    column A . . . . . . . Column B
    Musa
    Triticum
    Chrysanthemum
    Jatropha
    Oryza


    Data format (expected solution):

    column A . . . . . . . Column B
    Musa . . . . . . . . . Musaceae
    Triticum . . . . . . . Poaceae
    Chrysanthemum . . Compositae
    Jatropha . . . . . . . Euphorbiaceae
    Oryza . . . . . . . . . Poaceae

    Retrieving Data from internet.xlsm
    Last edited by xprakash; 07-02-2016 at 07:24 AM. Reason: correction

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

    Re: Extracting value from internet gives Run-time error 19

    The code works on the sample provided. Try it on the actual data and see if you get the result.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Seoul, Korea
    MS-Off Ver
    Excel 2013, Excel 2016
    Posts
    14

    Re: Extracting value from internet gives Run-time error 19

    Hi AB33,
    Thank you for your help, but I am not sure if it is local problem on my PC- while executing the code in Module1, I still get the same error and when I click "debug", it highlights code
    Please Login or Register  to view this content.
    And while executing the code in Module11, it gives name for first occurrence and says "ERROR12031-".
    Would you please guide me here? Should I have enabled some more tools among vba references?
    Please check the tool references I enabled in this image file- VBA references.jpg
    Or am I missing something else here?
    Last edited by xprakash; 07-02-2016 at 09:11 AM. Reason: addition

  4. #4
    Registered User
    Join Date
    10-16-2012
    Location
    Seoul, Korea
    MS-Off Ver
    Excel 2013, Excel 2016
    Posts
    14

    Re: Extracting value from internet gives Run-time error 19

    Found out the issue was with my IE setting. Once I ticked all "Use SSL" and "Use TSL" instances under "Advanced" tab in internet option, the code on module11 worked like a charm !
    (the code on module1, however, does not seem to work but that does not matter now)
    Thanks a ton AB33 !

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

    Re: Extracting value from internet gives Run-time error 19

    Ah, the module1 code was your code. I tried to see if it works and did not . I have now have deleted that code. There is only one code with the attached. I have also attached it to your button. You need to test with more names and see if you get the result.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-16-2012
    Location
    Seoul, Korea
    MS-Off Ver
    Excel 2013, Excel 2016
    Posts
    14

    Re: Extracting value from internet gives Run-time error 19

    Tested with larger data set and it gives data perfectly except for some exceptions like Amborella, Auxenochlorella etc. (not because of code fallacies but simply because searching those names would open different pages without class called "genuslist"). But their numbers were extremely few and were managed manually. Thank you again!

+ 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] Pickup time from Internet servers
    By dineshsachidananda in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-07-2015, 02:31 AM
  2. Need help extracting data from internet explorer and putting it in specific columns
    By dangerdavedsp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2013, 12:39 PM
  3. [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
  4. 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
  5. Extracting data from internet site
    By samnat_www in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2009, 07:33 AM
  6. Error running code in Internet Exporer
    By browny in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2006, 11:20 PM
  7. error in script from internet explorer
    By fred6529 in forum Excel General
    Replies: 0
    Last Post: 06-11-2005, 04:05 PM

Tags for this Thread

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