+ Reply to Thread
Results 1 to 3 of 3

Get Hyperlinks from a Website

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    41

    Get Hyperlinks from a Website

    Hi folks,

    once again i need you help with a macro i'm working on. The idea is to log to a website and extract a couple of hyperlinks. So far everything is ok, i'm able to log on to the website and extract ALL hyperlinks. However, i do need only some specific hyperlinks.

    Im using the follwing code to get the hyperlinks:

    Please Login or Register  to view this content.
    I noticed that all hyperlink tags have a kind of a description (not sure how its called - e.g.
    HTML Code: 
    Is there a way i can address to this description ("CLICK HERE" in the example above) and get only the hyperlinks that contain a specific text.

    I would really appreciate your help on this.

    thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Get Hyperlinks from a Website

    Try something like this:

    Please Login or Register  to view this content.

    I'm not sure whether the correct property to check is 'innerText', but it will be something like this. Edit: try leaving off the .innerText part entirely.
    Last edited by cyiangou; 07-30-2015 at 07:06 AM.

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Get Hyperlinks from a Website

    Works great,

    thanks a lot mate

+ 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. website scrapiplping to get data from multiplepages of website
    By mpatil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2015, 05:00 AM
  2. Averageif WILDCARD for website.com AND EXCLUDE website.com.xx
    By Gerhard.Angeles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2014, 09:12 AM
  3. website hyperlinks no longer working in Excel
    By robert harris in forum Excel General
    Replies: 2
    Last Post: 06-11-2013, 04:33 PM
  4. Find Hyperlinks, Copy Hyperlinks to alternative sheet, print all hyperlinks
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 05:13 PM
  5. How can I copy-and-paste hyperlinks from a website to a spreadsheet in Excel for Mac 2011?
    By RexLafferty in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 02-28-2013, 02:04 PM
  6. Opening website, getting data, closing website
    By beta_leonis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 03:50 AM
  7. [SOLVED] Querying tables from a website from a column of hyperlinks
    By holmdeal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2012, 11:32 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